diff options
Diffstat (limited to 'drivers/media/video/omap3isp/isppreview.c')
-rw-r--r-- | drivers/media/video/omap3isp/isppreview.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/omap3isp/isppreview.c b/drivers/media/video/omap3isp/isppreview.c index aba537af87e4..84a18b66b23c 100644 --- a/drivers/media/video/omap3isp/isppreview.c +++ b/drivers/media/video/omap3isp/isppreview.c | |||
@@ -2046,10 +2046,7 @@ static int preview_init_entities(struct isp_prev_device *prev) | |||
2046 | 2046 | ||
2047 | void omap3isp_preview_unregister_entities(struct isp_prev_device *prev) | 2047 | void omap3isp_preview_unregister_entities(struct isp_prev_device *prev) |
2048 | { | 2048 | { |
2049 | media_entity_cleanup(&prev->subdev.entity); | ||
2050 | |||
2051 | v4l2_device_unregister_subdev(&prev->subdev); | 2049 | v4l2_device_unregister_subdev(&prev->subdev); |
2052 | v4l2_ctrl_handler_free(&prev->ctrls); | ||
2053 | omap3isp_video_unregister(&prev->video_in); | 2050 | omap3isp_video_unregister(&prev->video_in); |
2054 | omap3isp_video_unregister(&prev->video_out); | 2051 | omap3isp_video_unregister(&prev->video_out); |
2055 | } | 2052 | } |
@@ -2085,6 +2082,12 @@ error: | |||
2085 | 2082 | ||
2086 | void omap3isp_preview_cleanup(struct isp_device *isp) | 2083 | void omap3isp_preview_cleanup(struct isp_device *isp) |
2087 | { | 2084 | { |
2085 | struct isp_prev_device *prev = &isp->isp_prev; | ||
2086 | |||
2087 | v4l2_ctrl_handler_free(&prev->ctrls); | ||
2088 | omap3isp_video_cleanup(&prev->video_in); | ||
2089 | omap3isp_video_cleanup(&prev->video_out); | ||
2090 | media_entity_cleanup(&prev->subdev.entity); | ||
2088 | } | 2091 | } |
2089 | 2092 | ||
2090 | /* | 2093 | /* |