summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyungwon Hwang <human.hwang@samsung.com>2014-08-19 12:18:31 (GMT)
committerHyungwon Hwang <human.hwang@samsung.com>2014-08-19 12:37:25 (GMT)
commit8d308dc0b9e392bd6b31a928e36b40210ea0c688 (patch)
treefcaa3660cf0998ec6f0f8892ec05b7890166a9dc
parent83109c1e3b092bb23ce7dbf47a0da9dc224bd3e7 (diff)
downloadlinux-3.10-v3.10.52-integration.zip
linux-3.10-v3.10.52-integration.tar.gz
linux-3.10-v3.10.52-integration.tar.bz2
drm/exynos: gsc: add device tree supportv3.10.52-integrationrefs/changes/32/26232/1
This patch makes Exynos DRM GSC driver compatible with device tree. Change-Id: I0e1abed40778c97c15ed5d52fc4568f0ee105c57 Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gsc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
index 2731982..ddea2a4 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
@@ -1806,11 +1806,18 @@ static const struct dev_pm_ops gsc_pm_ops = {
SET_RUNTIME_PM_OPS(gsc_runtime_suspend, gsc_runtime_resume, NULL)
};
+static const struct of_device_id exynos_drm_gsc_of_match[] = {
+ { .compatible = "samsung,exynos3250-drm-gsc" },
+ { },
+};
+MODULE_DEVICE_TABLE(of, exynos_drm_gsc_of_match);
+
struct platform_driver gsc_driver = {
.probe = gsc_probe,
.remove = gsc_remove,
.driver = {
.name = "exynos-drm-gsc",
+ .of_match_table = of_match_ptr(exynos_drm_gsc_of_match),
.owner = THIS_MODULE,
.pm = &gsc_pm_ops,
},