From 042f8d0e9a1b8073a3694b31fd248cc6ad5ddf4d Mon Sep 17 00:00:00 2001 From: ddl Date: Wed, 14 Nov 2012 16:19:26 +0800 Subject: [PATCH] camera: delete some invalidate message which notice io init failed --- arch/arm/plat-rk/rk_camera.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/arch/arm/plat-rk/rk_camera.c b/arch/arm/plat-rk/rk_camera.c index e747b829564e..0fbdd9326771 100755 --- a/arch/arm/plat-rk/rk_camera.c +++ b/arch/arm/plat-rk/rk_camera.c @@ -1060,11 +1060,7 @@ static int rk_sensor_io_init(void) if (i==j) { printk(KERN_ERR"rk_cam_io: %s..%s..reset pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_reset); goto sensor_io_init_erro; - }else{ - - printk("%s..%s..reset pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_reset); - //goto sensor_io_init_erro; - } + } } if (rk_camera_platform_data.iomux(camera_reset) < 0) { @@ -1091,10 +1087,7 @@ static int rk_sensor_io_init(void) if (i==j) { printk(KERN_ERR"rk_cam_io: %s..%s..powerdown pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_powerdown); goto sensor_io_init_erro; - }else{ - printk("%s..%s..powerdown pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_powerdown); - //goto sensor_io_init_erro; - } + } } if (rk_camera_platform_data.iomux(camera_powerdown) < 0) { @@ -1121,9 +1114,7 @@ static int rk_sensor_io_init(void) if (i==j) { printk(KERN_ERR"rk_cam_io: %s..%s..flash pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_flash); goto sensor_io_init_erro; - }else{ - printk("%s..%s..flash pin(%d) init failed\n",__FUNCTION__,plat_data->gpio_res[i].dev_name,camera_flash); - } + } } if (rk_camera_platform_data.iomux(camera_flash) < 0) { -- 2.34.1