|
@@ -509,8 +509,7 @@ static int __devexit omap2430_remove(struct platform_device *pdev)
|
|
struct omap2430_glue *glue = platform_get_drvdata(pdev);
|
|
struct omap2430_glue *glue = platform_get_drvdata(pdev);
|
|
|
|
|
|
cancel_work_sync(&glue->omap_musb_mailbox_work);
|
|
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;
|
|
return 0;
|
|
}
|
|
}
|