diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2012-07-26 09:54:13 +0800 |
---|---|---|
committer | Liu Ying <Ying.liu@freescale.com> | 2012-07-27 09:27:57 +0800 |
commit | 2a400a44f3f4743bb8434c2072afc1681bdeb657 (patch) | |
tree | f23608f08d8fd2eb16292118886df1f9a6c4d5af /drivers | |
parent | 66369761c9e8304ce0d9690cfafb46b4f4d2d6cc (diff) |
ENGR00218412-2 OV5642:Power down after checking dev id
This patch powers down camera after checking camera device
id to save power.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit eb280a7182cd8c71d698b57a720447f9d9b1174a)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/mxc/capture/ov5642.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/capture/ov5642.c b/drivers/media/video/mxc/capture/ov5642.c index f3a82dbcadec..245a92c15ef1 100644 --- a/drivers/media/video/mxc/capture/ov5642.c +++ b/drivers/media/video/mxc/capture/ov5642.c @@ -4011,6 +4011,9 @@ static int ov5642_probe(struct i2c_client *client, goto err4; } + if (plat_data->pwdn) + plat_data->pwdn(1); + camera_plat = plat_data; ov5642_int_device.priv = &ov5642_data; |