V4L/DVB (10054): dsbr100: fix unplug oops
authorAlexey Klimov <klimov.linux@gmail.com>
Sun, 28 Dec 2008 00:32:49 +0000 (21:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:09 +0000 (09:40 -0200)
commit3a0efc3200386b9288e1d3d3be0a9f5d6f286906
tree650ed52ad72760b8f3bcadcfd104b00ecc68d678
parentf2ce9179eab9a1551e91e3c97498e9350a087e39
V4L/DVB (10054): dsbr100: fix unplug oops

This patch corrects unplug procedure. Patch adds
usb_dsbr100_video_device_release, new macros - videodev_to_radio, mutex
lock and a lot of safety checks.
Struct video_device videodev is embedded in dsbr100_device structure.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/dsbr100.c