From: Liu Ying Date: Thu, 26 Jul 2012 01:52:45 +0000 (+0800) Subject: ENGR00218412-1 OV5640 mipi:Power down after checking dev id X-Git-Tag: v3.0.35-fsl_4.1.0~851 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2135ddd4c0258e80b7b91cf59f58cf65d65e294;p=karo-tx-linux.git 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 (cherry picked from commit a73b70b3d425825b4f4ba99c4c38c23bde227a9a) --- 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;