The patch number 11653 was added via Mauro Carvalho Chehab <mche...@redhat.com>
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 <linux-me...@vger.kernel.org>

------

From: Mauro Carvalho Chehab  <mche...@redhat.com>
merge: http://linuxtv.org/hg/~dheitmueller/950q_oopsfix


Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/video/au0828/au0828-core.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff -r a2018f294ed2 -r 1e824f41283e 
linux/drivers/media/video/au0828/au0828-core.c
--- a/linux/drivers/media/video/au0828/au0828-core.c    Tue Apr 28 19:57:21 
2009 -0300
+++ b/linux/drivers/media/video/au0828/au0828-core.c    Tue Apr 28 20:03:06 
2009 -0300
@@ -193,8 +193,6 @@ static int au0828_usb_probe(struct usb_i
        dev->usbdev = usbdev;
        dev->boardnr = id->driver_info;
 
-       usb_set_intfdata(interface, dev);
-
        /* Create the v4l2_device */
        retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev);
        if (retval) {
@@ -223,6 +221,10 @@ static int au0828_usb_probe(struct usb_i
        /* Digital TV */
        au0828_dvb_register(dev);
 
+       /* Store the pointer to the au0828_dev so it can be accessed in
+          au0828_usb_disconnect */
+       usb_set_intfdata(interface, dev);
+
        printk(KERN_INFO "Registered device AU0828 [%s]\n",
                dev->board.name == NULL ? "Unset" : dev->board.name);
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/1e824f41283ec6503f840bdc96e960b9770f9c38

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to