Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marek Szyprowski and committed by
Inki Dae
217afc1e 196e059a

+1 -4
+1 -4
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
··· 631 631 632 632 static int exynos5433_decon_probe(struct platform_device *pdev) 633 633 { 634 - const struct of_device_id *of_id; 635 634 struct device *dev = &pdev->dev; 636 635 struct decon_context *ctx; 637 636 struct resource *res; ··· 643 644 644 645 __set_bit(BIT_SUSPENDED, &ctx->flags); 645 646 ctx->dev = dev; 646 - 647 - of_id = of_match_device(exynos5433_decon_driver_dt_match, &pdev->dev); 648 - ctx->out_type = (enum decon_iftype)of_id->data; 647 + ctx->out_type = (enum decon_iftype)of_device_get_match_data(dev); 649 648 650 649 if (ctx->out_type == IFTYPE_HDMI) 651 650 ctx->first_win = 1;