]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: ohci: s3c2410: allow probing from device tree
authorSergio Prado <sergio.prado@e-labworks.com>
Fri, 25 Nov 2016 14:47:29 +0000 (12:47 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 16:31:36 +0000 (17:31 +0100)
Allows configuring Samsung's s3c2410 USB OHCI controller using a
devicetree.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-s3c2410.c

index 7a1919ca543a00022f0b515da075ddff9060db88..d8e03a801f2e60a4e2dbf5ed1f06361b785870fb 100644 (file)
@@ -457,6 +457,13 @@ static const struct dev_pm_ops ohci_hcd_s3c2410_pm_ops = {
        .resume         = ohci_hcd_s3c2410_drv_resume,
 };
 
+static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = {
+       { .compatible = "samsung,s3c2410-ohci" },
+       { /* sentinel */ }
+};
+
+MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids);
+
 static struct platform_driver ohci_hcd_s3c2410_driver = {
        .probe          = ohci_hcd_s3c2410_drv_probe,
        .remove         = ohci_hcd_s3c2410_drv_remove,
@@ -464,6 +471,7 @@ static struct platform_driver ohci_hcd_s3c2410_driver = {
        .driver         = {
                .name   = "s3c2410-ohci",
                .pm     = &ohci_hcd_s3c2410_pm_ops,
+               .of_match_table = ohci_hcd_s3c2410_dt_ids,
        },
 };