V4L/DVB (10336): gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.
Alexey Klimov [Thu, 1 Jan 2009 16:04:58 +0000 (13:04 -0300)]
Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

24 files changed:
drivers/media/video/gspca/conex.c
drivers/media/video/gspca/etoms.c
drivers/media/video/gspca/finepix.c
drivers/media/video/gspca/m5602/m5602_core.c
drivers/media/video/gspca/mars.c
drivers/media/video/gspca/ov519.c
drivers/media/video/gspca/ov534.c
drivers/media/video/gspca/pac207.c
drivers/media/video/gspca/pac7311.c
drivers/media/video/gspca/sonixb.c
drivers/media/video/gspca/sonixj.c
drivers/media/video/gspca/spca500.c
drivers/media/video/gspca/spca501.c
drivers/media/video/gspca/spca505.c
drivers/media/video/gspca/spca506.c
drivers/media/video/gspca/spca508.c
drivers/media/video/gspca/spca561.c
drivers/media/video/gspca/stk014.c
drivers/media/video/gspca/stv06xx/stv06xx.c
drivers/media/video/gspca/sunplus.c
drivers/media/video/gspca/t613.c
drivers/media/video/gspca/tv8532.c
drivers/media/video/gspca/vc032x.c
drivers/media/video/gspca/zc3xx.c

index 825342b..2de8906 100644 (file)
@@ -1031,7 +1031,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index c5f8dda..49ab265 100644 (file)
@@ -930,7 +930,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 96a5ca7..dc65c36 100644 (file)
@@ -457,7 +457,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index e78914d..b35e483 100644 (file)
@@ -376,7 +376,7 @@ static int __init mod_m5602_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 420224a..477441e 100644 (file)
@@ -423,7 +423,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index c78d2d0..1fff37b 100644 (file)
@@ -2179,7 +2179,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index e20ec7d..55d920c 100644 (file)
@@ -587,7 +587,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 1033172..93616ce 100644 (file)
@@ -567,7 +567,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 8a4551e..e1e3a3a 100644 (file)
@@ -1099,7 +1099,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index dd9417e..153d0a9 100644 (file)
@@ -1274,7 +1274,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index d1b604c..755ca30 100644 (file)
@@ -1796,7 +1796,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        info("registered");
        return 0;
 }
index 7549401..5450c3c 100644 (file)
@@ -1095,7 +1095,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 9ae62f1..414b5b8 100644 (file)
@@ -2213,7 +2213,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 32ae57e..b8c855c 100644 (file)
@@ -865,7 +865,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index aa3ecc8..8cedb00 100644 (file)
@@ -774,7 +774,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index c9d5e6c..34e7400 100644 (file)
@@ -1668,7 +1668,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 1538350..173c0c4 100644 (file)
@@ -1199,7 +1199,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 8743c03..ba31eb3 100644 (file)
@@ -563,7 +563,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        info("registered");
        return 0;
 }
index c43534d..9dff2e6 100644 (file)
@@ -503,7 +503,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index a7d324c..d9c9c44 100644 (file)
@@ -1467,7 +1467,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 1dfdbf5..76ba2c9 100644 (file)
@@ -1174,7 +1174,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 0bcbdb2..86e4f0e 100644 (file)
@@ -572,7 +572,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index 0f475ec..ab31080 100644 (file)
@@ -2462,7 +2462,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }
index afc10a9..e0dbbc2 100644 (file)
@@ -7602,7 +7602,7 @@ static int __init sd_mod_init(void)
        int ret;
        ret = usb_register(&sd_driver);
        if (ret < 0)
-               return -1;
+               return ret;
        PDEBUG(D_PROBE, "registered");
        return 0;
 }