From: Marek Szyprowski Date: Fri, 1 Apr 2016 13:17:40 +0000 (+0200) Subject: drm/exynos: exynos5433_decon: use generic of_device_get_match_data helper X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=217afc1ee43eccb09a2905aac442d7bc20efc810;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Inki Dae --- 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;