diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-04-01 09:17:40 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-04-29 22:34:06 -0400 |
commit | 217afc1ee43eccb09a2905aac442d7bc20efc810 (patch) | |
tree | 91a876617ec3612ba2a0f4f1e8c9253bf7303c36 | |
parent | 196e059a8a6a23dc099d4c3f2fccdda7775ddc16 (diff) |
drm/exynos: exynos5433_decon: use generic of_device_get_match_data helper
Simplify code by replacing custom code by generic helper.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 84f8ed6e20eb..2dfdcadd6cbb 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c | |||
@@ -631,7 +631,6 @@ MODULE_DEVICE_TABLE(of, exynos5433_decon_driver_dt_match); | |||
631 | 631 | ||
632 | static int exynos5433_decon_probe(struct platform_device *pdev) | 632 | static int exynos5433_decon_probe(struct platform_device *pdev) |
633 | { | 633 | { |
634 | const struct of_device_id *of_id; | ||
635 | struct device *dev = &pdev->dev; | 634 | struct device *dev = &pdev->dev; |
636 | struct decon_context *ctx; | 635 | struct decon_context *ctx; |
637 | struct resource *res; | 636 | struct resource *res; |
@@ -644,9 +643,7 @@ static int exynos5433_decon_probe(struct platform_device *pdev) | |||
644 | 643 | ||
645 | __set_bit(BIT_SUSPENDED, &ctx->flags); | 644 | __set_bit(BIT_SUSPENDED, &ctx->flags); |
646 | ctx->dev = dev; | 645 | ctx->dev = dev; |
647 | 646 | ctx->out_type = (enum decon_iftype)of_device_get_match_data(dev); | |
648 | of_id = of_match_device(exynos5433_decon_driver_dt_match, &pdev->dev); | ||
649 | ctx->out_type = (enum decon_iftype)of_id->data; | ||
650 | 647 | ||
651 | if (ctx->out_type == IFTYPE_HDMI) | 648 | if (ctx->out_type == IFTYPE_HDMI) |
652 | ctx->first_win = 1; | 649 | ctx->first_win = 1; |