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:
f1e716d
)
drm/exynos: hdmi: add null check for hdmiphy_port
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 28 Jul 2014 08:15:22 +0000
(17:15 +0900)
committer
Inki Dae
<inki.dae@samsung.com>
Mon, 4 Aug 2014 04:39:27 +0000
(13:39 +0900)
The hdmiphy can be apb and hdmiphy_port can be null. So before
accessing hdmiphy_port, it should be checked.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
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 d08e00d1f4edeb334d0c91a67fd6c6fa67186213..562966db2aa13eec90a5dbf588666675f8674892 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/
drivers/gpu/drm/exynos/exynos_hdmi.c
@@
-2521,7
+2521,8
@@
static int hdmi_remove(struct platform_device *pdev)
if (hdata->res.reg_hdmi_en)
regulator_disable(hdata->res.reg_hdmi_en);
- put_device(&hdata->hdmiphy_port->dev);
+ if (hdata->hdmiphy_port)
+ put_device(&hdata->hdmiphy_port->dev);
put_device(&hdata->ddc_adpt->dev);
pm_runtime_disable(&pdev->dev);