From: Tomi Valkeinen Date: Tue, 17 Dec 2013 09:54:02 +0000 (+0200) Subject: OMAPDSS: Add DT support to DISPC X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d7977f888b83d29506a59bf3fbf6c36085a0b2b9;p=deliverable%2Flinux.git OMAPDSS: Add DT support to DISPC Add DT support to DISPC. Only thing needed here is the of_match_table. Signed-off-by: Tomi Valkeinen Reviewed-by: Archit Taneja --- diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 77d6221618f4..7c3e4ec1ae33 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -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, }, };