]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: ohci: da8xx: Allow probing from DT
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 23 Nov 2016 18:06:49 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 16:31:36 +0000 (17:31 +0100)
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>
drivers/usb/host/ohci-da8xx.c

index 2b9cb2e67de3f4494a731c3f02865c028fc5f508..9e336f4085f2c540e35973fae85b0eacca85beb6 100644 (file)
@@ -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),
        },
 };