|
@@ -528,8 +528,8 @@ static int usbhs_omap_get_dt_pdata(struct device *dev,
|
|
|
}
|
|
|
|
|
|
static const struct of_device_id usbhs_child_match_table[] = {
|
|
|
- { .compatible = "ti,omap-ehci", },
|
|
|
- { .compatible = "ti,omap-ohci", },
|
|
|
+ { .compatible = "ti,ehci-omap", },
|
|
|
+ { .compatible = "ti,ohci-omap3", },
|
|
|
{ }
|
|
|
};
|
|
|
|
|
@@ -855,6 +855,7 @@ static struct platform_driver usbhs_omap_driver = {
|
|
|
.pm = &usbhsomap_dev_pm_ops,
|
|
|
.of_match_table = usbhs_omap_dt_ids,
|
|
|
},
|
|
|
+ .probe = usbhs_omap_probe,
|
|
|
.remove = usbhs_omap_remove,
|
|
|
};
|
|
|
|
|
@@ -864,9 +865,9 @@ MODULE_ALIAS("platform:" USBHS_DRIVER_NAME);
|
|
|
MODULE_LICENSE("GPL v2");
|
|
|
MODULE_DESCRIPTION("usb host common core driver for omap EHCI and OHCI");
|
|
|
|
|
|
-static int __init omap_usbhs_drvinit(void)
|
|
|
+static int omap_usbhs_drvinit(void)
|
|
|
{
|
|
|
- return platform_driver_probe(&usbhs_omap_driver, usbhs_omap_probe);
|
|
|
+ return platform_driver_register(&usbhs_omap_driver);
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -878,7 +879,7 @@ static int __init omap_usbhs_drvinit(void)
|
|
|
*/
|
|
|
fs_initcall_sync(omap_usbhs_drvinit);
|
|
|
|
|
|
-static void __exit omap_usbhs_drvexit(void)
|
|
|
+static void omap_usbhs_drvexit(void)
|
|
|
{
|
|
|
platform_driver_unregister(&usbhs_omap_driver);
|
|
|
}
|