diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-04-01 16:17:40 +0300 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-04-30 05:34:06 +0300 |
commit | 217afc1ee43eccb09a2905aac442d7bc20efc810 (patch) | |
tree | 91a876617ec3612ba2a0f4f1e8c9253bf7303c36 /drivers/gpu/drm/exynos | |
parent | 196e059a8a6a23dc099d4c3f2fccdda7775ddc16 (diff) | |
download | linux-217afc1ee43eccb09a2905aac442d7bc20efc810.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-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); static int exynos5433_decon_probe(struct platform_device *pdev) { - const struct of_device_id *of_id; struct device *dev = &pdev->dev; struct decon_context *ctx; struct resource *res; @@ -644,9 +643,7 @@ static int exynos5433_decon_probe(struct platform_device *pdev) __set_bit(BIT_SUSPENDED, &ctx->flags); ctx->dev = dev; - - of_id = of_match_device(exynos5433_decon_driver_dt_match, &pdev->dev); - ctx->out_type = (enum decon_iftype)of_id->data; + ctx->out_type = (enum decon_iftype)of_device_get_match_data(dev); if (ctx->out_type == IFTYPE_HDMI) ctx->first_win = 1; |