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 <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
This commit is contained in:
Tomi Valkeinen 2013-12-17 11:54:02 +02:00
Родитель 2ecef24630
Коммит d7977f888b
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -3780,12 +3780,20 @@ static const struct dev_pm_ops dispc_pm_ops = {
.runtime_resume = dispc_runtime_resume, .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 = { static struct platform_driver omap_dispchw_driver = {
.remove = __exit_p(omap_dispchw_remove), .remove = __exit_p(omap_dispchw_remove),
.driver = { .driver = {
.name = "omapdss_dispc", .name = "omapdss_dispc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &dispc_pm_ops, .pm = &dispc_pm_ops,
.of_match_table = dispc_of_match,
}, },
}; };