Skip to contentSkip to conversation

drivers: usb: musb: cleanup while removing musb omap glue driver

PATCH New Kishon Vijay Abraham I 1 participant 1 message Aug 2, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: 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.

---
 drivers/usb/musb/omap2430.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/usb/musb/omap2430.c +1 -2
index 5fdb9da..392fc7a 100644
@@ -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;
 }
Signature · 1 line
1.7.9.5