camera:fix ov5640 flash complite error
authorddl <ddl@rockchip.com>
Fri, 29 Jul 2011 10:08:48 +0000 (18:08 +0800)
committerddl <ddl@rockchip.com>
Fri, 29 Jul 2011 10:08:48 +0000 (18:08 +0800)
drivers/media/video/ov5640.c

index 7c9f4cb38fb0b9cea04c6ba3b42cd2410e65cc0d..50d140e529a00c935ae973ed7a8ab47633b733fd 100755 (executable)
@@ -3615,6 +3615,7 @@ static long sensor_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
             /* ddl@rock-chips.com : if gpio_flash havn't been set in board-xxx.c, sensor driver must notify is not support flash control 
                for this project */
             #if CONFIG_SENSOR_Flash    
+            int i;
                if (sensor->sensor_gpio_res) {
                 printk("flash io:%d\n",sensor->sensor_gpio_res->gpio_flash);
                 if (sensor->sensor_gpio_res->gpio_flash == INVALID_GPIO) {