The patch number 11208 was added via Mike Isely <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
Linux Media Mailing List <[email protected]>
------
From: Mike Isely <[email protected]>
pvrusb2: Use v4l2_device_disconnect()
Priority: normal
Signed-off-by: Mike Isely <[email protected]>
---
linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff -r c5cbb3e57563 -r 627f6619d984
linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c Sun Mar 15 15:53:29
2009 -0500
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c Tue Mar 24 22:30:45
2009 -0500
@@ -2694,10 +2694,7 @@ static void pvr2_hdw_remove_usb_stuff(st
/* If we don't do this, then there will be a dangling struct device
reference to our disappearing device persisting inside the V4L
core... */
- if (hdw->v4l2_dev.dev) {
- dev_set_drvdata(hdw->v4l2_dev.dev, NULL);
- hdw->v4l2_dev.dev = NULL;
- }
+ v4l2_device_disconnect(&hdw->v4l2_dev);
hdw->usb_dev = NULL;
hdw->usb_intf = NULL;
pvr2_hdw_render_useless(hdw);
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/627f6619d984c31a53ba16883dc7cfa40802632a
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits