projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f295df1
)
drm/exynos: hdmi: use generic of_device_get_match_data helper
author
Marek Szyprowski
<
[email protected]
>
Fri, 1 Apr 2016 13:17:44 +0000
(15:17 +0200)
committer
Inki Dae
<
[email protected]
>
Sat, 30 Apr 2016 02:34:09 +0000
(11:34 +0900)
Simplify code by replacing custom code by generic helper.
Signed-off-by: Marek Szyprowski <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_hdmi.c
b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 14509ef65583d09cc3d28bb8c69c7f7fd8093036..0f87acb4cf21020be72cd9e3366e3b7cdc3299ef 100644
(file)
--- 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);