summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-vt8500.c
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2012-07-21 12:58:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 23:00:37 +0200
commit8ad551d150e3bb0902696496a9d2aa094335705a (patch)
tree9c688f2c682c86acb2004217ffef9876a383daed /drivers/usb/host/ehci-vt8500.c
parentdrivers/usb/gadget/s3c-hsotg.c: fix error return code (diff)
downloadlinux-8ad551d150e3bb0902696496a9d2aa094335705a.tar.xz
linux-8ad551d150e3bb0902696496a9d2aa094335705a.zip
ARM: vt8500: Update vt8500-ehci driver to support device tree.
Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-vt8500.c')
-rw-r--r--drivers/usb/host/ehci-vt8500.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-vt8500.c b/drivers/usb/host/ehci-vt8500.c
index a8916177bed7..96722bfebc84 100644
--- a/drivers/usb/host/ehci-vt8500.c
+++ b/drivers/usb/host/ehci-vt8500.c
@@ -16,6 +16,7 @@
*
*/
+#include <linux/of.h>
#include <linux/platform_device.h>
static int ehci_update_device(struct usb_hcd *hcd, struct usb_device *udev)
@@ -139,6 +140,12 @@ static int vt8500_ehci_drv_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id vt8500_ehci_ids[] = {
+ { .compatible = "via,vt8500-ehci", },
+ { .compatible = "wm,prizm-ehci", },
+ {}
+};
+
static struct platform_driver vt8500_ehci_driver = {
.probe = vt8500_ehci_drv_probe,
.remove = vt8500_ehci_drv_remove,
@@ -146,7 +153,9 @@ static struct platform_driver vt8500_ehci_driver = {
.driver = {
.name = "vt8500-ehci",
.owner = THIS_MODULE,
+ .of_match_table = of_match_ptr(vt8500_ehci_ids),
}
};
MODULE_ALIAS("platform:vt8500-ehci");
+MODULE_DEVICE_TABLE(of, vt8500_ehci_ids);