V4L/DVB (9126): gspca: Fix some compilation warnings in m5602.
authorJean-Francois Moine <moinejf@free.fr>
Thu, 9 Oct 2008 06:14:03 +0000 (03:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:16 +0000 (09:37 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_mt9m111.c
drivers/media/video/gspca/m5602/m5602_ov9650.h
drivers/media/video/gspca/m5602/m5602_s5k4aa.h

index ea2250217b07976e61e65e771456c96b03e98a3d..566d4925a0e8a4af6a41494719539bde976ce56e 100644 (file)
@@ -69,7 +69,7 @@ sensor_found:
 
 int mt9m111_init(struct sd *sd)
 {
-       int i, err;
+       int i, err = 0;
 
        /* Init the sensor */
        for (i = 0; i < ARRAY_SIZE(init_mt9m111); i++) {
index 486ea337a8b4afdf0a09ac72eb145b920d5fe725..2f29cb056f30094f5fc84cd5b8971e4d0da20bc0 100644 (file)
@@ -466,7 +466,9 @@ static const unsigned char power_down_ov9650[][3] =
 
 /* Vertically and horizontally flips the image if matched, needed for machines
    where the sensor is mounted upside down */
-static const struct dmi_system_id ov9650_flip_dmi_table[] = {
+static
+    const
+       struct dmi_system_id ov9650_flip_dmi_table[] = {
        {
                .ident = "ASUS A6VC",
                .matches = {
index 1e4213a73214670fcd9ff575dfb50e64f532b064..bb7f7e3e90af6fe460e7abc2a583dc0d9689a2c7 100644 (file)
@@ -339,7 +339,9 @@ static const unsigned char init_s5k4aa[][4] =
        {SENSOR, S5K4AA_GAIN_2, 0xa0, 0x00}
 };
 
-static const struct dmi_system_id s5k4aa_vflip_dmi_table[] = {
+static
+    const
+       struct dmi_system_id s5k4aa_vflip_dmi_table[] = {
        {
                .ident = "Fujitsu-Siemens Amilo Xa 2528",
                .matches = {