[media] [RFC] radio-mr800: locking fixes
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 17 Oct 2010 12:26:18 +0000 (09:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Oct 2010 01:40:58 +0000 (23:40 -0200)
commita682d4cb768381039bdafdc3c04c53cf8d70dcf0
tree5b4b92be483f34d08b85e25ae7938af416bc7316
parente2302501c32a0e7e34b7077f10da03b72dd91570
[media] [RFC] radio-mr800: locking fixes

- serialize the suspend and resume functions using the global lock.
- do not call usb_autopm_put_interface after a disconnect.
- fix a race when disconnecting the device.

Reported-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Ellingsworth<david@identd.dyndns.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-mr800.c