aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-plat.c
diff options
context:
space:
mode:
authorAl Cooper <alcooperx@gmail.com>2013-07-25 19:04:44 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-08-13 19:05:31 -0400
commit1fe6c4524f765734d376c39d0f41e25519f6235d (patch)
tree248bb31d27c321dabd9fd9e5f49a85c0a596923e /drivers/usb/host/xhci-plat.c
parent5b146f7e016a8727a98b3d48e4f4e128d3624cd5 (diff)
usb: Add Device Tree support to XHCI Platform driver
Add Device Tree match table to xhci-plat.c. Add DT bindings document. Signed-off-by: Al Cooper <alcooperx@gmail.com> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-plat.c')
-rw-r--r--drivers/usb/host/xhci-plat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 412fe8d167cf..3fcdaea21e24 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -14,6 +14,7 @@
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/module.h> 15#include <linux/module.h>
16#include <linux/slab.h> 16#include <linux/slab.h>
17#include <linux/of.h>
17 18
18#include "xhci.h" 19#include "xhci.h"
19 20
@@ -211,12 +212,21 @@ static const struct dev_pm_ops xhci_plat_pm_ops = {
211#define DEV_PM_OPS NULL 212#define DEV_PM_OPS NULL
212#endif /* CONFIG_PM */ 213#endif /* CONFIG_PM */
213 214
215#ifdef CONFIG_OF
216static const struct of_device_id usb_xhci_of_match[] = {
217 { .compatible = "xhci-platform" },
218 { },
219};
220MODULE_DEVICE_TABLE(of, usb_xhci_of_match);
221#endif
222
214static struct platform_driver usb_xhci_driver = { 223static struct platform_driver usb_xhci_driver = {
215 .probe = xhci_plat_probe, 224 .probe = xhci_plat_probe,
216 .remove = xhci_plat_remove, 225 .remove = xhci_plat_remove,
217 .driver = { 226 .driver = {
218 .name = "xhci-hcd", 227 .name = "xhci-hcd",
219 .pm = DEV_PM_OPS, 228 .pm = DEV_PM_OPS,
229 .of_match_table = of_match_ptr(usb_xhci_of_match),
220 }, 230 },
221}; 231};
222MODULE_ALIAS("platform:xhci-hcd"); 232MODULE_ALIAS("platform:xhci-hcd");