aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/vimc')
-rw-r--r--drivers/media/platform/vimc/vimc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-core.c b/drivers/media/platform/vimc/vimc-core.c
index c2fdf3ea67ed..0fbb7914098f 100644
--- a/drivers/media/platform/vimc/vimc-core.c
+++ b/drivers/media/platform/vimc/vimc-core.c
@@ -220,6 +220,7 @@ static int vimc_comp_bind(struct device *master)
220 220
221err_mdev_unregister: 221err_mdev_unregister:
222 media_device_unregister(&vimc->mdev); 222 media_device_unregister(&vimc->mdev);
223 media_device_cleanup(&vimc->mdev);
223err_comp_unbind_all: 224err_comp_unbind_all:
224 component_unbind_all(master, NULL); 225 component_unbind_all(master, NULL);
225err_v4l2_unregister: 226err_v4l2_unregister:
@@ -236,6 +237,7 @@ static void vimc_comp_unbind(struct device *master)
236 dev_dbg(master, "unbind"); 237 dev_dbg(master, "unbind");
237 238
238 media_device_unregister(&vimc->mdev); 239 media_device_unregister(&vimc->mdev);
240 media_device_cleanup(&vimc->mdev);
239 component_unbind_all(master, NULL); 241 component_unbind_all(master, NULL);
240 v4l2_device_unregister(&vimc->v4l2_dev); 242 v4l2_device_unregister(&vimc->v4l2_dev);
241} 243}