]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00218412-2 OV5642:Power down after checking dev id
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 26 Jul 2012 01:54:13 +0000 (09:54 +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 eb280a7182cd8c71d698b57a720447f9d9b1174a)

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

index f3a82dbcadec8dd3b9d05dee17e062f81a2bb902..245a92c15ef131ae8d1ccb7b8c0fe23f13ff7542 100644 (file)
@@ -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;