]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAPDSS: Add DT support to DISPC
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 17 Dec 2013 09:54:02 +0000 (11:54 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 19 Mar 2014 09:03:07 +0000 (11:03 +0200)
Add DT support to DISPC. Only thing needed here is the of_match_table.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dispc.c

index 77d6221618f4eba677190c9a5c7acf7546b3f55d..7c3e4ec1ae33b0f5c1b8230887e7553adad13578 100644 (file)
@@ -3780,12 +3780,20 @@ static const struct dev_pm_ops dispc_pm_ops = {
        .runtime_resume = dispc_runtime_resume,
 };
 
+static const struct of_device_id dispc_of_match[] = {
+       { .compatible = "ti,omap2-dispc", },
+       { .compatible = "ti,omap3-dispc", },
+       { .compatible = "ti,omap4-dispc", },
+       {},
+};
+
 static struct platform_driver omap_dispchw_driver = {
        .remove         = __exit_p(omap_dispchw_remove),
        .driver         = {
                .name   = "omapdss_dispc",
                .owner  = THIS_MODULE,
                .pm     = &dispc_pm_ops,
+               .of_match_table = dispc_of_match,
        },
 };