]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] pwc: Get rid of error_status and unplugged variables
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Jun 2011 20:39:19 +0000 (17:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 21:41:40 +0000 (18:41 -0300)
commitcf0d70ca52edc6df9fd668fe5d513683f1f3bf73
treeafce8d03253bcbe46a8382764ca96a50f5badb76
parent1d0af2a23b2f1a5073dadd52523980ead4b5a254
[media] pwc: Get rid of error_status and unplugged variables

Having 2 ways of tracking disconnection is too much, remove both and
instead simply set pdev->udev to NULL on disconnect. Also check for
pdev->udev being NULL in all possible entry paths.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc-v4l.c
drivers/media/video/pwc/pwc.h