Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 730cf849 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: sensor: Power off the sensor if no gpios"

parents e8c17a19 c283427e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1658,7 +1658,7 @@ int cam_sensor_core_power_up(struct cam_sensor_power_ctrl_t *ctrl,
		case SENSOR_CUSTOM_GPIO2:
		case SENSOR_CUSTOM_GPIO2:
			if (no_gpio) {
			if (no_gpio) {
				CAM_ERR(CAM_SENSOR, "request gpio failed");
				CAM_ERR(CAM_SENSOR, "request gpio failed");
				return no_gpio;
				goto power_up_failed;
			}
			}
			if (!gpio_num_info) {
			if (!gpio_num_info) {
				CAM_ERR(CAM_SENSOR, "Invalid gpio_num_info");
				CAM_ERR(CAM_SENSOR, "Invalid gpio_num_info");