[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>
Wed, 27 Jul 2011 20:53:43 +0000 (17:53 -0300)
commitb824bb4b12548fedd622686d443310d574eb084e
tree09b71717e080d9809a73e4a198d15a7a892f0fb6
parent1a4ede65f30315a31cb9b239bec0d4bb32834691
[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