summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-da8xx.c
diff options
context:
space:
mode:
authorAxel Haslam <ahaslam@baylibre.com>2016-11-23 19:06:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 17:31:36 +0100
commit190534f64ac39aa569934391de19d7df9370fc9f (patch)
treeb743018e6795318221c513083196de0e6b72ae3d /drivers/usb/host/ohci-da8xx.c
parentff8c1bd8cf88b621a07fe18eca83c43eb2fdc5c0 (diff)
downloadlinux-190534f64ac39aa569934391de19d7df9370fc9f.tar.gz
linux-190534f64ac39aa569934391de19d7df9370fc9f.tar.bz2
linux-190534f64ac39aa569934391de19d7df9370fc9f.zip
USB: ohci: da8xx: Allow probing from DT
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam <ahaslam@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-da8xx.c')
-rw-r--r--drivers/usb/host/ohci-da8xx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c
index 2b9cb2e67de3..9e336f4085f2 100644
--- a/drivers/usb/host/ohci-da8xx.c
+++ b/drivers/usb/host/ohci-da8xx.c
@@ -394,6 +394,13 @@ check_port:
}
/*-------------------------------------------------------------------------*/
+#ifdef CONFIG_OF
+static const struct of_device_id da8xx_ohci_ids[] = {
+ { .compatible = "ti,da830-ohci" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, da8xx_ohci_ids);
+#endif
static int ohci_da8xx_probe(struct platform_device *pdev)
{
@@ -546,6 +553,7 @@ static struct platform_driver ohci_hcd_da8xx_driver = {
#endif
.driver = {
.name = DRV_NAME,
+ .of_match_table = of_match_ptr(da8xx_ohci_ids),
},
};