[PATCH 16/23] drm/exynos/gscaler: fix id assignement
Andrzej Hajda
a.hajda at samsung.com
Fri Mar 1 12:20:48 UTC 2019
Id should be assigned based on OF alias.
Signed-off-by: Andrzej Hajda <a.hajda at samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_gsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
index f048d97fe9e2..8d5aa70c8ab8 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
@@ -1287,7 +1287,7 @@ static int gsc_probe(struct platform_device *pdev)
}
/* context initailization */
- ctx->id = pdev->id;
+ ctx->id = of_alias_get_id(dev->of_node, "gsc");
platform_set_drvdata(pdev, ctx);
--
2.17.1
More information about the dri-devel
mailing list