|
@@ -22,6 +22,7 @@
|
|
|
#include <linux/clk.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/i2c.h>
|
|
|
+#include <linux/of.h>
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
|
#include <asm/mach-types.h>
|
|
@@ -525,10 +526,19 @@ static int usb_hcd_nxp_remove(struct platform_device *pdev)
|
|
|
/* work with hotplug and coldplug */
|
|
|
MODULE_ALIAS("platform:usb-ohci");
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
+static const struct of_device_id usb_hcd_nxp_match[] = {
|
|
|
+ { .compatible = "nxp,ohci-nxp" },
|
|
|
+ {},
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, usb_hcd_nxp_match);
|
|
|
+#endif
|
|
|
+
|
|
|
static struct platform_driver usb_hcd_nxp_driver = {
|
|
|
.driver = {
|
|
|
.name = "usb-ohci",
|
|
|
.owner = THIS_MODULE,
|
|
|
+ .of_match_table = of_match_ptr(usb_hcd_nxp_match),
|
|
|
},
|
|
|
.probe = usb_hcd_nxp_probe,
|
|
|
.remove = usb_hcd_nxp_remove,
|