media: smiapp: Don't update sensor configuration during power-on init
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 1 Oct 2019 11:46:51 +0000 (08:46 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:55:39 +0000 (18:55 -0300)
The sensor configuration since it was previously powered off was not
changed, so no need to update the PLL configuration etc. What is necessary
though is to re-apply the configuration to the sensor's registers.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/smiapp/smiapp-core.c

index 9986215fed895b0c89fe893b37a38aacf3bdeec4..1fad05583febefacfe019f82bcebe38a493fbbce 100644 (file)
@@ -1267,10 +1267,6 @@ static int smiapp_power_on(struct device *dev)
                rval = __v4l2_ctrl_handler_setup(&sensor->src->ctrl_handler);
                if (rval)
                        goto out_cci_addr_fail;
-
-               rval = smiapp_update_mode(sensor);
-               if (rval < 0)
-                       goto out_cci_addr_fail;
        }
 
        mutex_unlock(&sensor->mutex);