]> err.no Git - linux-2.6/commitdiff
V4L/DVB (8369): gspca: Bad initialization of sn9c102 ov7630.
authorJean-Francois Moine <moinejf@free.fr>
Thu, 17 Jul 2008 12:37:57 +0000 (09:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:27:28 +0000 (07:27 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/gspca/sonixb.c
drivers/media/video/gspca/vc032x.c

index 045ed6b7d053f54fea63d0c6be93b735f21414cc..f1b16d4451f20e4689d4b10574e587092ebc59f5 100644 (file)
@@ -938,7 +938,7 @@ static void sd_start(struct gspca_dev *gspca_dev)
        case SENSOR_OV7630:
                reg01 = 0x06;
                reg17 = 0x29;
-               l = 0x10;
+               l = sizeof initOv7630;
                break;
        case SENSOR_OV7630_3:
                reg01 = 0x44;
index dd7c1389f38d44da6687ac8a2f4c2dff9ba984c5..fcf2c9e32573a5d8a2a23a94c5a49fed086c8fa4 100644 (file)
@@ -925,14 +925,14 @@ static const __u8 ov7660_initQVGA_data[][4] = {
        {0xb8, 0x8f, 0xff, 0xcc}, /* ff */
        {0x00, 0x29, 0x3c, 0xaa},
        {0xb3, 0x01, 0x45, 0xcc}, /* 45 */
-       {0x00, 0x00, 0x00, 0x00}
+       {}
 };
 
 static const __u8 ov7660_50HZ[][4] = {
        {0x00, 0x3b, 0x08, 0xaa},
        {0x00, 0x9d, 0x40, 0xaa},
        {0x00, 0x13, 0xa7, 0xaa},
-       {0x00, 0x00, 0x00, 0x00}
+       {}
 };
 
 static const __u8 ov7660_60HZ[][4] = {