aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-tve.c
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2016-08-11 09:18:49 +0000
committerPhilipp Zabel <[email protected]>2016-08-29 10:45:05 +0000
commit8e3b16e2117409625b89807de3912ff773aea354 (patch)
treeee329ab4e51729eb6403c91e4490c5e4fd392c15 /drivers/gpu/drm/imx/imx-tve.c
parentdrm/imx: drop deprecated load/unload drm_driver ops (diff)
downloadkernel-8e3b16e2117409625b89807de3912ff773aea354.tar.gz
kernel-8e3b16e2117409625b89807de3912ff773aea354.zip
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 <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-tve.c')
-rw-r--r--drivers/gpu/drm/imx/imx-tve.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c
index 5e875944ffa2..8fc088843e55 100644
--- a/drivers/gpu/drm/imx/imx-tve.c
+++ b/drivers/gpu/drm/imx/imx-tve.c
@@ -685,9 +685,6 @@ static void imx_tve_unbind(struct device *dev, struct device *master,
{
struct imx_tve *tve = dev_get_drvdata(dev);
- tve->connector.funcs->destroy(&tve->connector);
- tve->encoder.funcs->destroy(&tve->encoder);
-
if (!IS_ERR(tve->dac_reg))
regulator_disable(tve->dac_reg);
}