mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Camera: sensor: Power off the sensor if no gpios
Power off the sensor if no gpios at the time of power on, since some regulator and clk need to be released. Change-Id: Ie200459276b5327a1627e8839ec404c3c26f4205 Signed-off-by: Depeng Shao <depengs@codeaurora.org> Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:
parent
aa0f96d02c
commit
a89607a875
1 changed files with 1 additions and 1 deletions
|
|
@ -1658,7 +1658,7 @@ int cam_sensor_core_power_up(struct cam_sensor_power_ctrl_t *ctrl,
|
|||
case SENSOR_CUSTOM_GPIO2:
|
||||
if (no_gpio) {
|
||||
CAM_ERR(CAM_SENSOR, "request gpio failed");
|
||||
return no_gpio;
|
||||
goto power_up_failed;
|
||||
}
|
||||
if (!gpio_num_info) {
|
||||
CAM_ERR(CAM_SENSOR, "Invalid gpio_num_info");
|
||||
|
|
|
|||
Loading…
Reference in a new issue