diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2016-04-01 15:17:44 +0200 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-04-30 11:34:09 +0900 |
commit | 57a64122b6f9987c0dbe7af632e1857d33fb2469 (patch) | |
tree | 350d59f027f9055093f83eb4131eff898f8900dc /drivers/gpu/drm/exynos | |
parent | f295df175ad5e3086ac7dd52f15d583e80b90f9b (diff) | |
download | blackbird-op-linux-57a64122b6f9987c0dbe7af632e1857d33fb2469.tar.gz blackbird-op-linux-57a64122b6f9987c0dbe7af632e1857d33fb2469.zip |
drm/exynos: hdmi: 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/exynos_hdmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 14509ef65583..0f87acb4cf21 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -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; @@ -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); |