From: Kuninori Morimoto Date: Tue, 2 Feb 2010 04:17:54 +0000 (+0900) Subject: soc-camera: mt9t112: modify exiting conditions from standby mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b59125b1b5f8c9bb0524b8a0bdad4b780a239ac;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git soc-camera: mt9t112: modify exiting conditions from standby mode This polling is needed if camera is in standby mode, but current exiting condition is inverted. Signed-off-by: Kuninori Morimoto Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c index fc4dd604572..7438f8d775b 100644 --- a/drivers/media/video/mt9t112.c +++ b/drivers/media/video/mt9t112.c @@ -514,7 +514,7 @@ static int mt9t112_init_pll(const struct i2c_client *client) /* poll to verify out of standby. Must Poll this bit */ for (i = 0; i < 100; i++) { mt9t112_reg_read(data, client, 0x0018); - if (0x4000 & data) + if (!(0x4000 & data)) break; mdelay(10);