diff options
author | Roger Quadros <rogerq@ti.com> | 2013-01-29 08:20:55 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-09 03:46:30 -0400 |
commit | 48130b8f5c6d77608257dc50bf914bd77f0b41a0 (patch) | |
tree | f8ea85bd358f9e6f257879791218b7c5e5256e9d /drivers/mfd/omap-usb-tll.c | |
parent | 9f4a3ece05a6c2f2dc5e4967602e9927addab97e (diff) |
mfd: omap-usb-tll: Add device tree support and binding information
Allows the OMAP USB TLL module to be specified via device tree.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/omap-usb-tll.c')
-rw-r--r-- | drivers/mfd/omap-usb-tll.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c index f7d2568729c1..8f4d5a1fcd1a 100644 --- a/drivers/mfd/omap-usb-tll.c +++ b/drivers/mfd/omap-usb-tll.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/err.h> | 28 | #include <linux/err.h> |
29 | #include <linux/pm_runtime.h> | 29 | #include <linux/pm_runtime.h> |
30 | #include <linux/platform_data/usb-omap.h> | 30 | #include <linux/platform_data/usb-omap.h> |
31 | #include <linux/of.h> | ||
31 | 32 | ||
32 | #define USBTLL_DRIVER_NAME "usbhs_tll" | 33 | #define USBTLL_DRIVER_NAME "usbhs_tll" |
33 | 34 | ||
@@ -311,10 +312,18 @@ static int usbtll_omap_remove(struct platform_device *pdev) | |||
311 | return 0; | 312 | return 0; |
312 | } | 313 | } |
313 | 314 | ||
315 | static const struct of_device_id usbtll_omap_dt_ids[] = { | ||
316 | { .compatible = "ti,usbhs-tll" }, | ||
317 | { } | ||
318 | }; | ||
319 | |||
320 | MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids); | ||
321 | |||
314 | static struct platform_driver usbtll_omap_driver = { | 322 | static struct platform_driver usbtll_omap_driver = { |
315 | .driver = { | 323 | .driver = { |
316 | .name = (char *)usbtll_driver_name, | 324 | .name = (char *)usbtll_driver_name, |
317 | .owner = THIS_MODULE, | 325 | .owner = THIS_MODULE, |
326 | .of_match_table = of_match_ptr(usbtll_omap_dt_ids), | ||
318 | }, | 327 | }, |
319 | .probe = usbtll_omap_probe, | 328 | .probe = usbtll_omap_probe, |
320 | .remove = usbtll_omap_remove, | 329 | .remove = usbtll_omap_remove, |
@@ -467,6 +476,7 @@ int omap_tll_disable(struct usbhs_omap_platform_data *pdata) | |||
467 | EXPORT_SYMBOL_GPL(omap_tll_disable); | 476 | EXPORT_SYMBOL_GPL(omap_tll_disable); |
468 | 477 | ||
469 | MODULE_AUTHOR("Keshava Munegowda <keshava_mgowda@ti.com>"); | 478 | MODULE_AUTHOR("Keshava Munegowda <keshava_mgowda@ti.com>"); |
479 | MODULE_AUTHOR("Roger Quadros <rogerq@ti.com>"); | ||
470 | MODULE_ALIAS("platform:" USBHS_DRIVER_NAME); | 480 | MODULE_ALIAS("platform:" USBHS_DRIVER_NAME); |
471 | MODULE_LICENSE("GPL v2"); | 481 | MODULE_LICENSE("GPL v2"); |
472 | MODULE_DESCRIPTION("usb tll driver for TI OMAP EHCI and OHCI controllers"); | 482 | MODULE_DESCRIPTION("usb tll driver for TI OMAP EHCI and OHCI controllers"); |