diff options
author | Archit Taneja | 2013-10-15 09:04:20 +0200 |
---|---|---|
committer | Tomi Valkeinen | 2014-01-09 14:25:35 +0100 |
commit | 3d232346c5656b300028b6c920ddc10b229b5264 (patch) | |
tree | 58cfe38779bd1cc67e33a1a2f5d892f7ad7c0806 | |
parent | drm/omap: fix: change dev_unload order (diff) | |
download | kernel-qcow2-linux-3d232346c5656b300028b6c920ddc10b229b5264.tar.gz kernel-qcow2-linux-3d232346c5656b300028b6c920ddc10b229b5264.tar.xz kernel-qcow2-linux-3d232346c5656b300028b6c920ddc10b229b5264.zip |
drm/omap: Enable DT support for DMM
Enable use of DT for DMM/Tiler.
Originally worked on by Andy Gross <andygro@gmail.com>
Cc: Andy Gross <andygro@gmail.com>
Cc: DRI Development <dri-devel@lists.freedesktop.org>
Signed-off-by: Archit Taneja <archit@ti.com>
[tomi.valkeinen@ti.com: use of_match_ptr()]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 701c4c10e08b..f926b4caf449 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -969,12 +969,21 @@ static const struct dev_pm_ops omap_dmm_pm_ops = { }; #endif +#if defined(CONFIG_OF) +static const struct of_device_id dmm_of_match[] = { + { .compatible = "ti,omap4-dmm", }, + { .compatible = "ti,omap5-dmm", }, + {}, +}; +#endif + struct platform_driver omap_dmm_driver = { .probe = omap_dmm_probe, .remove = omap_dmm_remove, .driver = { .owner = THIS_MODULE, .name = DMM_DRIVER_NAME, + .of_match_table = of_match_ptr(dmm_of_match), #ifdef CONFIG_PM .pm = &omap_dmm_pm_ops, #endif |