summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2012-08-02 12:00:07 +0200
committerFelipe Balbi <balbi@ti.com>2012-08-03 10:37:40 +0200
commitf039df580a518df49abff35fec970268bc3c51e3 (patch)
treea4deeb96736834d015f53c652499c087348d01fc /drivers/usb/musb
parentusb: musb: NAK timeout scheme on bulk TX endpoint (diff)
downloadlinux-f039df580a518df49abff35fec970268bc3c51e3.tar.xz
linux-f039df580a518df49abff35fec970268bc3c51e3.zip
usb: musb: cleanup while removing musb omap glue driver
No functional change. Just replaced the call to platform_device_del and platform_device_put with platform_device_unregister. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/omap2430.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 5fdb9da8dd56..392fc7a488f2 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -509,8 +509,7 @@ static int __devexit omap2430_remove(struct platform_device *pdev)
struct omap2430_glue *glue = platform_get_drvdata(pdev);
cancel_work_sync(&glue->omap_musb_mailbox_work);
- platform_device_del(glue->musb);
- platform_device_put(glue->musb);
+ platform_device_unregister(glue->musb);
return 0;
}