[media] tm6000: Properly count device usage
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 4 Aug 2011 07:14:11 +0000 (04:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Aug 2011 20:20:23 +0000 (17:20 -0300)
commit6f2e77bb955771a7b8de80ea519c1e9a82b864dd
tree56f2b460327768ae1ab053b102cfc0ceb841ea4e
parentfc4eab2cbae547fb278c2583b77ee0ff7f5832d3
[media] tm6000: Properly count device usage

When the USB device is disconnected, the device usage bit is not cleared
properly. This leads to errors when a device is unplugged and replugged
several times until all TM6000_MAXBOARDS bits are used and keeps the
driver from binding to the device.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-cards.c