diff options
Diffstat (limited to 'drivers/media/i2c/ov5645.c')
-rw-r--r-- | drivers/media/i2c/ov5645.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c index d28845f7356f..2c2c2c4f9d20 100644 --- a/drivers/media/i2c/ov5645.c +++ b/drivers/media/i2c/ov5645.c @@ -724,11 +724,13 @@ static int ov5645_s_power(struct v4l2_subdev *sd, int on) mutex_lock(&ov5645->power_lock); + pr_info("%s: %d\n", __func__, __LINE__); /* If the power count is modified from 0 to != 0 or from != 0 to 0, * update the power state. */ if (ov5645->power_count == !on) { if (on) { + pr_info("%s: %d\n", __func__, __LINE__); ret = ov5645_set_power_on(ov5645); if (ret < 0) goto exit; @@ -750,6 +752,7 @@ static int ov5645_s_power(struct v4l2_subdev *sd, int on) goto exit; } } else { + pr_info("%s: %d\n", __func__, __LINE__); ov5645_set_power_off(ov5645); } } @@ -1054,6 +1057,7 @@ static int ov5645_s_stream(struct v4l2_subdev *subdev, int enable) struct ov5645 *ov5645 = to_ov5645(subdev); int ret; + pr_info("%s: %d\n", __func__, __LINE__); if (enable) { ret = ov5645_set_register_array(ov5645, ov5645->current_mode->data, @@ -1074,6 +1078,7 @@ static int ov5645_s_stream(struct v4l2_subdev *subdev, int enable) if (ret < 0) return ret; } else { + pr_info("%s: %d\n", __func__, __LINE__); ret = ov5645_write_reg(ov5645, OV5645_SYSTEM_CTRL0, OV5645_SYSTEM_CTRL0_STOP); if (ret < 0) |