On platform_device_add() failure, the TUSB6010 glue layer forgets to call
platform_device_put() -- probably due to a typo...

Signed-off-by: Sergei Shtylyov <[email protected]>

---
This patch is atop of 'musb' branch of Felipe's tree...

 drivers/usb/musb/tusb6010.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: usb/drivers/usb/musb/tusb6010.c
===================================================================
--- usb.orig/drivers/usb/musb/tusb6010.c
+++ usb/drivers/usb/musb/tusb6010.c
@@ -1199,7 +1199,7 @@ static int __devinit tusb_probe(struct p
        ret = platform_device_add(musb);
        if (ret) {
                dev_err(&pdev->dev, "failed to register musb device\n");
-               goto err1;
+               goto err2;
        }
 
        return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to