summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imx/parallel-display.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2016-08-11 12:18:49 +0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-08-29 13:45:05 +0300
commit8e3b16e2117409625b89807de3912ff773aea354 (patch)
treeee329ab4e51729eb6403c91e4490c5e4fd392c15 /drivers/gpu/drm/imx/parallel-display.c
parent54db5decce17b3258475a011a00b9c5c51c57a35 (diff)
downloadlinux-8e3b16e2117409625b89807de3912ff773aea354.tar.xz
drm/imx: don't destroy mode objects manually on driver unbind
Instead let drm_mode_config_cleanup() do the work when taking down the master device. This requires all cleanup functions to be properly hooked up to the mode object .destroy callback. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/parallel-display.c')
-rw-r--r--drivers/gpu/drm/imx/parallel-display.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c
index 74b0ac06fdab..f20333790728 100644
--- a/drivers/gpu/drm/imx/parallel-display.c
+++ b/drivers/gpu/drm/imx/parallel-display.c
@@ -293,9 +293,6 @@ static void imx_pd_unbind(struct device *dev, struct device *master,
{
struct imx_parallel_display *imxpd = dev_get_drvdata(dev);
- imxpd->encoder.funcs->destroy(&imxpd->encoder);
- imxpd->connector.funcs->destroy(&imxpd->connector);
-
kfree(imxpd->edid);
}