[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c

Nelson Castillo arhuaco at freaks-unidos.net
Mon Jun 8 17:30:10 UTC 2009


The following commit has been merged in the andy-tracking branch:
commit 9ecc089861ab238e391de368142cc17b2f715cf7
Author: Timo Juhani Lindfors <timo.lindfors at iki.fi>
Date:   Tue Apr 28 12:22:46 2009 -0500

    Call unbind() hook of the usb gadget so that it can properly release its resources
    
    Call unbind() hook of the gadget so that it can properly release its
    resources. This fixes bug http://docs.openmoko.org/trac/ticket/2240
    ("removing/reloading g_ether not working"). All other instances of
    usb_gadget_unregister_driver in Linux already call unbind() so it is
    bit odd s3c2410_udc.c did not do so.
    
    Signed-off-by: Timo Juhani Lindfors <timo.lindfors at iki.fi>

diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index 1a185c1..891bab7 100644
--- a/drivers/usb/gadget/s3c2410_udc.c
+++ b/drivers/usb/gadget/s3c2410_udc.c
@@ -1713,6 +1713,7 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)
 	if (driver->disconnect)
 		driver->disconnect(&udc->gadget);
 
+	driver->unbind(&udc->gadget);
 	device_del(&udc->gadget.dev);
 	udc->driver = NULL;
 

-- 
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko



More information about the pkg-fso-commits mailing list