Skip to content

Commit

Permalink
drm/exynos: exynos5433_decon: use generic of_device_get_match_data he…
Browse files Browse the repository at this point in the history
…lper

Simplify code by replacing custom code by generic helper.

Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
  • Loading branch information
mszyprow authored and daeinki committed Apr 30, 2016
1 parent 196e059 commit 217afc1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/gpu/drm/exynos/exynos5433_drm_decon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 217afc1

Please sign in to comment.