]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00169764 fix linux-2.6.38 kernel build error.
authorLiu Xiaowen <b37945@freescale.com>
Thu, 8 Dec 2011 03:05:38 +0000 (11:05 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:35 +0000 (08:33 +0200)
fix linux-2.6.38 kernel build error.

Signed-off-by: Liu Xiaowen <b37945@freescale.com>
drivers/media/video/mxc/capture/ov5642.c

index f874635d201cc9128916327e0d440198dadd6e7e..0a20b6f6d35696dc3126b78c9169f5fd979c83d0 100644 (file)
@@ -1798,9 +1798,6 @@ static struct i2c_driver ov5642_i2c_driver = {
        .id_table = ov5642_id,
 };
 
-extern void gpio_sensor_active(unsigned int csi_index);
-extern void gpio_sensor_inactive(unsigned int csi);
-
 static s32 ov5642_write_reg(u16 reg, u8 val)
 {
        u8 au8Buf[3] = {0};
@@ -2160,7 +2157,6 @@ static int ioctl_s_power(struct v4l2_int_device *s, int on)
        struct sensor *sensor = s->priv;
 
        if (on && !sensor->on) {
-               gpio_sensor_active(ov5642_data.csi);
                if (io_regulator)
                        if (regulator_enable(io_regulator) != 0)
                                return -EIO;
@@ -2186,7 +2182,6 @@ static int ioctl_s_power(struct v4l2_int_device *s, int on)
                        regulator_disable(io_regulator);
                if (gpo_regulator)
                        regulator_disable(gpo_regulator);
-               gpio_sensor_inactive(ov5642_data.csi);
        }
 
        sensor->on = on;
@@ -2570,7 +2565,6 @@ static int ioctl_dev_init(struct v4l2_int_device *s)
        u32 tgt_fps;    /* target frames per secound */
        enum ov5642_frame_rate frame_rate;
 
-       gpio_sensor_active(ov5642_data.csi);
        ov5642_data.on = true;
 
        /* mclk */
@@ -2630,8 +2624,6 @@ err:
  */
 static int ioctl_dev_exit(struct v4l2_int_device *s)
 {
-       gpio_sensor_inactive(ov5642_data.csi);
-
        return 0;
 }