summaryrefslogtreecommitdiff
path: root/drivers/media/radio/radio-shark.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-08-11 13:34:52 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-12 20:49:19 +0400
commit820ddfa6ca87fc12bf202907b77f635df2098e66 (patch)
treed48d93625176dce006814733846a24f9531027f4 /drivers/media/radio/radio-shark.c
parentac6eb458f5f9d45dd3bbfe8a91683c09860910c5 (diff)
downloadlinux-820ddfa6ca87fc12bf202907b77f635df2098e66.tar.xz
[media] radio-shark*: Remove work-around for dangling pointer in usb intfdata
Recent kernels properly clear the usb intfdata pointer when another driver fails to bind (in the radio-shark* case the usbhid driver would try to bind first. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-shark.c')
-rw-r--r--drivers/media/radio/radio-shark.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/media/radio/radio-shark.c b/drivers/media/radio/radio-shark.c
index d0b6bb507634..e35b8d938a30 100644
--- a/drivers/media/radio/radio-shark.c
+++ b/drivers/media/radio/radio-shark.c
@@ -286,15 +286,6 @@ static int usb_shark_probe(struct usb_interface *intf,
if (!shark->transfer_buffer)
goto err_alloc_buffer;
- /*
- * Work around a bug in usbhid/hid-core.c, where it leaves a dangling
- * pointer in intfdata causing v4l2-device.c to not set it. Which
- * results in usb_shark_disconnect() referencing the dangling pointer
- *
- * REMOVE (as soon as the above bug is fixed, patch submitted)
- */
- usb_set_intfdata(intf, NULL);
-
shark->v4l2_dev.release = usb_shark_release;
v4l2_device_set_name(&shark->v4l2_dev, DRV_NAME, &shark_instance);
retval = v4l2_device_register(&intf->dev, &shark->v4l2_dev);