summaryrefslogtreecommitdiff
path: root/drivers/media/video/omap3isp/isppreview.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/omap3isp/isppreview.c')
-rw-r--r--drivers/media/video/omap3isp/isppreview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/omap3isp/isppreview.c b/drivers/media/video/omap3isp/isppreview.c
index cf5014f2302d..04c96899f005 100644
--- a/drivers/media/video/omap3isp/isppreview.c
+++ b/drivers/media/video/omap3isp/isppreview.c
@@ -889,6 +889,9 @@ static int preview_config(struct isp_prev_device *prev,
struct preview_update *attr;
int i, bit, rval = 0;
+ if (cfg->update == 0)
+ return 0;
+
params = &prev->params;
if (prev->state != ISP_PIPELINE_STREAM_STOPPED) {
@@ -944,6 +947,9 @@ static void preview_setup_hw(struct isp_prev_device *prev)
int i, bit;
void *param_ptr;
+ if (prev->update == 0)
+ return;
+
for (i = 0; i < ARRAY_SIZE(update_attrs); i++) {
attr = &update_attrs[i];