Skip to content

Commit

Permalink
drm/exynos: hdmi: use generic of_device_get_match_data helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Inki Dae committed Apr 30, 2016
1 parent f295df1 commit 57a6412
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,6 @@ static struct device_node *hdmi_legacy_phy_dt_binding(struct device *dev)
static int hdmi_probe(struct platform_device *pdev)
{
struct device_node *ddc_node, *phy_node;
const struct of_device_id *match;
struct device *dev = &pdev->dev;
struct hdmi_context *hdata;
struct resource *res;
Expand All @@ -1770,11 +1769,7 @@ static int hdmi_probe(struct platform_device *pdev)
if (!hdata)
return -ENOMEM;

match = of_match_device(hdmi_match_types, dev);
if (!match)
return -ENODEV;

hdata->drv_data = match->data;
hdata->drv_data = of_device_get_match_data(dev);

platform_set_drvdata(pdev, hdata);

Expand Down

0 comments on commit 57a6412

Please sign in to comment.