aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/omap2430.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/omap2430.c')
-rw-r--r--drivers/usb/musb/omap2430.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index c27bbbf32b52..b254173e7e85 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -408,7 +408,7 @@ static const struct musb_platform_ops omap2430_ops = {
408 408
409static u64 omap2430_dmamask = DMA_BIT_MASK(32); 409static u64 omap2430_dmamask = DMA_BIT_MASK(32);
410 410
411static int __init omap2430_probe(struct platform_device *pdev) 411static int __devinit omap2430_probe(struct platform_device *pdev)
412{ 412{
413 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; 413 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;
414 struct platform_device *musb; 414 struct platform_device *musb;
@@ -471,7 +471,7 @@ err0:
471 return ret; 471 return ret;
472} 472}
473 473
474static int __exit omap2430_remove(struct platform_device *pdev) 474static int __devexit omap2430_remove(struct platform_device *pdev)
475{ 475{
476 struct omap2430_glue *glue = platform_get_drvdata(pdev); 476 struct omap2430_glue *glue = platform_get_drvdata(pdev);
477 477
@@ -524,7 +524,8 @@ static struct dev_pm_ops omap2430_pm_ops = {
524#endif 524#endif
525 525
526static struct platform_driver omap2430_driver = { 526static struct platform_driver omap2430_driver = {
527 .remove = __exit_p(omap2430_remove), 527 .probe = omap2430_probe,
528 .remove = __devexit_p(omap2430_remove),
528 .driver = { 529 .driver = {
529 .name = "musb-omap2430", 530 .name = "musb-omap2430",
530 .pm = DEV_PM_OPS, 531 .pm = DEV_PM_OPS,
@@ -537,9 +538,9 @@ MODULE_LICENSE("GPL v2");
537 538
538static int __init omap2430_init(void) 539static int __init omap2430_init(void)
539{ 540{
540 return platform_driver_probe(&omap2430_driver, omap2430_probe); 541 return platform_driver_register(&omap2430_driver);
541} 542}
542subsys_initcall(omap2430_init); 543module_init(omap2430_init);
543 544
544static void __exit omap2430_exit(void) 545static void __exit omap2430_exit(void)
545{ 546{