aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_g2d.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
index ddcfb5d2ca43..0fcfbe4660bb 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
@@ -19,6 +19,7 @@
19#include <linux/workqueue.h> 19#include <linux/workqueue.h>
20#include <linux/dma-mapping.h> 20#include <linux/dma-mapping.h>
21#include <linux/dma-attrs.h> 21#include <linux/dma-attrs.h>
22#include <linux/of.h>
22 23
23#include <drm/drmP.h> 24#include <drm/drmP.h>
24#include <drm/exynos_drm.h> 25#include <drm/exynos_drm.h>
@@ -1240,6 +1241,14 @@ static int g2d_resume(struct device *dev)
1240 1241
1241static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume); 1242static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume);
1242 1243
1244#ifdef CONFIG_OF
1245static const struct of_device_id exynos_g2d_match[] = {
1246 { .compatible = "samsung,exynos5250-g2d" },
1247 {},
1248};
1249MODULE_DEVICE_TABLE(of, exynos_g2d_match);
1250#endif
1251
1243struct platform_driver g2d_driver = { 1252struct platform_driver g2d_driver = {
1244 .probe = g2d_probe, 1253 .probe = g2d_probe,
1245 .remove = g2d_remove, 1254 .remove = g2d_remove,
@@ -1247,5 +1256,6 @@ struct platform_driver g2d_driver = {
1247 .name = "s5p-g2d", 1256 .name = "s5p-g2d",
1248 .owner = THIS_MODULE, 1257 .owner = THIS_MODULE,
1249 .pm = &g2d_pm_ops, 1258 .pm = &g2d_pm_ops,
1259 .of_match_table = of_match_ptr(exynos_g2d_match),
1250 }, 1260 },
1251}; 1261};