aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/imx-drm/imx-ldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/imx-drm/imx-ldb.c')
-rw-r--r--drivers/staging/imx-drm/imx-ldb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c
index 7e3f019d7e72..4662e00b456a 100644
--- a/drivers/staging/imx-drm/imx-ldb.c
+++ b/drivers/staging/imx-drm/imx-ldb.c
@@ -574,6 +574,9 @@ static void imx_ldb_unbind(struct device *dev, struct device *master,
for (i = 0; i < 2; i++) {
struct imx_ldb_channel *channel = &imx_ldb->channel[i];
+ if (!channel->connector.funcs)
+ continue;
+
channel->connector.funcs->destroy(&channel->connector);
channel->encoder.funcs->destroy(&channel->encoder);
}