]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00218412-1 OV5640 mipi:Power down after checking dev id
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 26 Jul 2012 01:52:45 +0000 (09:52 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:32 +0000 (14:12 +0200)
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)

drivers/media/video/mxc/capture/ov5640_mipi.c

index b46820b58b12838fcb79ea5a8c01dacab403e4ce..f19fdc38d5fcaa144aaff1d69af6eb0aa2832e8c 100644 (file)
@@ -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;