diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2012-07-26 09:52:45 +0800 |
---|---|---|
committer | Liu Ying <Ying.liu@freescale.com> | 2012-07-27 09:27:47 +0800 |
commit | 66369761c9e8304ce0d9690cfafb46b4f4d2d6cc (patch) | |
tree | 9e6997ab63bde42671241ff83a84b29c048ed70d /drivers/media | |
parent | deaa87ba531ca28a99c8edf3409729e5a9cb2ced (diff) |
ENGR00218412-1 OV5640 mipi: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 a73b70b3d425825b4f4ba99c4c38c23bde227a9a)
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/mxc/capture/ov5640_mipi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/capture/ov5640_mipi.c b/drivers/media/video/mxc/capture/ov5640_mipi.c index b46820b58b12..f19fdc38d5fc 100644 --- a/drivers/media/video/mxc/capture/ov5640_mipi.c +++ b/drivers/media/video/mxc/capture/ov5640_mipi.c @@ -1871,6 +1871,9 @@ static int ov5640_probe(struct i2c_client *client, goto err4; } + if (plat_data->pwdn) + plat_data->pwdn(1); + camera_plat = plat_data; ov5640_int_device.priv = &ov5640_data; |