diff options
author | Tony Prisk <linux@prisktech.co.nz> | 2012-07-21 06:58:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 17:00:37 -0400 |
commit | 8ad551d150e3bb0902696496a9d2aa094335705a (patch) | |
tree | 9c688f2c682c86acb2004217ffef9876a383daed /drivers/usb/host | |
parent | dfdda5a0fa3f458e9807da1d1a1d2c56076d43e5 (diff) |
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')
-rw-r--r-- | drivers/usb/host/ehci-vt8500.c | 9 |
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 @@ | |||
16 | * | 16 | * |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/of.h> | ||
19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
20 | 21 | ||
21 | static int ehci_update_device(struct usb_hcd *hcd, struct usb_device *udev) | 22 | 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) | |||
139 | return 0; | 140 | return 0; |
140 | } | 141 | } |
141 | 142 | ||
143 | static const struct of_device_id vt8500_ehci_ids[] = { | ||
144 | { .compatible = "via,vt8500-ehci", }, | ||
145 | { .compatible = "wm,prizm-ehci", }, | ||
146 | {} | ||
147 | }; | ||
148 | |||
142 | static struct platform_driver vt8500_ehci_driver = { | 149 | static struct platform_driver vt8500_ehci_driver = { |
143 | .probe = vt8500_ehci_drv_probe, | 150 | .probe = vt8500_ehci_drv_probe, |
144 | .remove = vt8500_ehci_drv_remove, | 151 | .remove = vt8500_ehci_drv_remove, |
@@ -146,7 +153,9 @@ static struct platform_driver vt8500_ehci_driver = { | |||
146 | .driver = { | 153 | .driver = { |
147 | .name = "vt8500-ehci", | 154 | .name = "vt8500-ehci", |
148 | .owner = THIS_MODULE, | 155 | .owner = THIS_MODULE, |
156 | .of_match_table = of_match_ptr(vt8500_ehci_ids), | ||
149 | } | 157 | } |
150 | }; | 158 | }; |
151 | 159 | ||
152 | MODULE_ALIAS("platform:vt8500-ehci"); | 160 | MODULE_ALIAS("platform:vt8500-ehci"); |
161 | MODULE_DEVICE_TABLE(of, vt8500_ehci_ids); | ||