diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-01-01 11:04:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:29 -0400 |
commit | e6b148490f5e9ebb90ecb4a8de930be1b8936a16 (patch) | |
tree | b1b60102c8be93bcb150dfa22bb7ed1c73613c75 /drivers/media/video/gspca | |
parent | f69e9529ed96ff917096d0b7b3015c8d8ea5750d (diff) |
V4L/DVB (10336): gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.
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>
Diffstat (limited to 'drivers/media/video/gspca')
24 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index 825342be41fc..2de8906e5661 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -1031,7 +1031,7 @@ static int __init sd_mod_init(void) | |||
1031 | int ret; | 1031 | int ret; |
1032 | ret = usb_register(&sd_driver); | 1032 | ret = usb_register(&sd_driver); |
1033 | if (ret < 0) | 1033 | if (ret < 0) |
1034 | return -1; | 1034 | return ret; |
1035 | PDEBUG(D_PROBE, "registered"); | 1035 | PDEBUG(D_PROBE, "registered"); |
1036 | return 0; | 1036 | return 0; |
1037 | } | 1037 | } |
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index c5f8dda42435..49ab2659a3f6 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -930,7 +930,7 @@ static int __init sd_mod_init(void) | |||
930 | int ret; | 930 | int ret; |
931 | ret = usb_register(&sd_driver); | 931 | ret = usb_register(&sd_driver); |
932 | if (ret < 0) | 932 | if (ret < 0) |
933 | return -1; | 933 | return ret; |
934 | PDEBUG(D_PROBE, "registered"); | 934 | PDEBUG(D_PROBE, "registered"); |
935 | return 0; | 935 | return 0; |
936 | } | 936 | } |
diff --git a/drivers/media/video/gspca/finepix.c b/drivers/media/video/gspca/finepix.c index 96a5ca775b55..dc65c363aa87 100644 --- a/drivers/media/video/gspca/finepix.c +++ b/drivers/media/video/gspca/finepix.c | |||
@@ -457,7 +457,7 @@ static int __init sd_mod_init(void) | |||
457 | int ret; | 457 | int ret; |
458 | ret = usb_register(&sd_driver); | 458 | ret = usb_register(&sd_driver); |
459 | if (ret < 0) | 459 | if (ret < 0) |
460 | return -1; | 460 | return ret; |
461 | PDEBUG(D_PROBE, "registered"); | 461 | PDEBUG(D_PROBE, "registered"); |
462 | return 0; | 462 | return 0; |
463 | } | 463 | } |
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c index e78914d7a1a0..b35e4838a6e5 100644 --- a/drivers/media/video/gspca/m5602/m5602_core.c +++ b/drivers/media/video/gspca/m5602/m5602_core.c | |||
@@ -376,7 +376,7 @@ static int __init mod_m5602_init(void) | |||
376 | int ret; | 376 | int ret; |
377 | ret = usb_register(&sd_driver); | 377 | ret = usb_register(&sd_driver); |
378 | if (ret < 0) | 378 | if (ret < 0) |
379 | return -1; | 379 | return ret; |
380 | PDEBUG(D_PROBE, "registered"); | 380 | PDEBUG(D_PROBE, "registered"); |
381 | return 0; | 381 | return 0; |
382 | } | 382 | } |
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c index 420224afacb1..477441e22bab 100644 --- a/drivers/media/video/gspca/mars.c +++ b/drivers/media/video/gspca/mars.c | |||
@@ -423,7 +423,7 @@ static int __init sd_mod_init(void) | |||
423 | int ret; | 423 | int ret; |
424 | ret = usb_register(&sd_driver); | 424 | ret = usb_register(&sd_driver); |
425 | if (ret < 0) | 425 | if (ret < 0) |
426 | return -1; | 426 | return ret; |
427 | PDEBUG(D_PROBE, "registered"); | 427 | PDEBUG(D_PROBE, "registered"); |
428 | return 0; | 428 | return 0; |
429 | } | 429 | } |
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index c78d2d0f43d3..1fff37b79891 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -2179,7 +2179,7 @@ static int __init sd_mod_init(void) | |||
2179 | int ret; | 2179 | int ret; |
2180 | ret = usb_register(&sd_driver); | 2180 | ret = usb_register(&sd_driver); |
2181 | if (ret < 0) | 2181 | if (ret < 0) |
2182 | return -1; | 2182 | return ret; |
2183 | PDEBUG(D_PROBE, "registered"); | 2183 | PDEBUG(D_PROBE, "registered"); |
2184 | return 0; | 2184 | return 0; |
2185 | } | 2185 | } |
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index e20ec7df34a7..55d920caa6bb 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -587,7 +587,7 @@ static int __init sd_mod_init(void) | |||
587 | int ret; | 587 | int ret; |
588 | ret = usb_register(&sd_driver); | 588 | ret = usb_register(&sd_driver); |
589 | if (ret < 0) | 589 | if (ret < 0) |
590 | return -1; | 590 | return ret; |
591 | PDEBUG(D_PROBE, "registered"); | 591 | PDEBUG(D_PROBE, "registered"); |
592 | return 0; | 592 | return 0; |
593 | } | 593 | } |
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 10331728f162..93616cebf360 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -567,7 +567,7 @@ static int __init sd_mod_init(void) | |||
567 | int ret; | 567 | int ret; |
568 | ret = usb_register(&sd_driver); | 568 | ret = usb_register(&sd_driver); |
569 | if (ret < 0) | 569 | if (ret < 0) |
570 | return -1; | 570 | return ret; |
571 | PDEBUG(D_PROBE, "registered"); | 571 | PDEBUG(D_PROBE, "registered"); |
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 8a4551ecd0a6..e1e3a3a50484 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -1099,7 +1099,7 @@ static int __init sd_mod_init(void) | |||
1099 | int ret; | 1099 | int ret; |
1100 | ret = usb_register(&sd_driver); | 1100 | ret = usb_register(&sd_driver); |
1101 | if (ret < 0) | 1101 | if (ret < 0) |
1102 | return -1; | 1102 | return ret; |
1103 | PDEBUG(D_PROBE, "registered"); | 1103 | PDEBUG(D_PROBE, "registered"); |
1104 | return 0; | 1104 | return 0; |
1105 | } | 1105 | } |
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index dd9417eea16a..153d0a91d4b5 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -1274,7 +1274,7 @@ static int __init sd_mod_init(void) | |||
1274 | int ret; | 1274 | int ret; |
1275 | ret = usb_register(&sd_driver); | 1275 | ret = usb_register(&sd_driver); |
1276 | if (ret < 0) | 1276 | if (ret < 0) |
1277 | return -1; | 1277 | return ret; |
1278 | PDEBUG(D_PROBE, "registered"); | 1278 | PDEBUG(D_PROBE, "registered"); |
1279 | return 0; | 1279 | return 0; |
1280 | } | 1280 | } |
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index d1b604c07afd..755ca302368e 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -1796,7 +1796,7 @@ static int __init sd_mod_init(void) | |||
1796 | int ret; | 1796 | int ret; |
1797 | ret = usb_register(&sd_driver); | 1797 | ret = usb_register(&sd_driver); |
1798 | if (ret < 0) | 1798 | if (ret < 0) |
1799 | return -1; | 1799 | return ret; |
1800 | info("registered"); | 1800 | info("registered"); |
1801 | return 0; | 1801 | return 0; |
1802 | } | 1802 | } |
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index 75494016515d..5450c3c4274b 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -1095,7 +1095,7 @@ static int __init sd_mod_init(void) | |||
1095 | int ret; | 1095 | int ret; |
1096 | ret = usb_register(&sd_driver); | 1096 | ret = usb_register(&sd_driver); |
1097 | if (ret < 0) | 1097 | if (ret < 0) |
1098 | return -1; | 1098 | return ret; |
1099 | PDEBUG(D_PROBE, "registered"); | 1099 | PDEBUG(D_PROBE, "registered"); |
1100 | return 0; | 1100 | return 0; |
1101 | } | 1101 | } |
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 9ae62f18f725..414b5b8b759f 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -2213,7 +2213,7 @@ static int __init sd_mod_init(void) | |||
2213 | int ret; | 2213 | int ret; |
2214 | ret = usb_register(&sd_driver); | 2214 | ret = usb_register(&sd_driver); |
2215 | if (ret < 0) | 2215 | if (ret < 0) |
2216 | return -1; | 2216 | return ret; |
2217 | PDEBUG(D_PROBE, "registered"); | 2217 | PDEBUG(D_PROBE, "registered"); |
2218 | return 0; | 2218 | return 0; |
2219 | } | 2219 | } |
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index 32ae57e5f7be..b8c855c6a4ec 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -865,7 +865,7 @@ static int __init sd_mod_init(void) | |||
865 | int ret; | 865 | int ret; |
866 | ret = usb_register(&sd_driver); | 866 | ret = usb_register(&sd_driver); |
867 | if (ret < 0) | 867 | if (ret < 0) |
868 | return -1; | 868 | return ret; |
869 | PDEBUG(D_PROBE, "registered"); | 869 | PDEBUG(D_PROBE, "registered"); |
870 | return 0; | 870 | return 0; |
871 | } | 871 | } |
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index aa3ecc8acfa6..8cedb00976a4 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -774,7 +774,7 @@ static int __init sd_mod_init(void) | |||
774 | int ret; | 774 | int ret; |
775 | ret = usb_register(&sd_driver); | 775 | ret = usb_register(&sd_driver); |
776 | if (ret < 0) | 776 | if (ret < 0) |
777 | return -1; | 777 | return ret; |
778 | PDEBUG(D_PROBE, "registered"); | 778 | PDEBUG(D_PROBE, "registered"); |
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index c9d5e6c80912..34e74004774b 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -1668,7 +1668,7 @@ static int __init sd_mod_init(void) | |||
1668 | int ret; | 1668 | int ret; |
1669 | ret = usb_register(&sd_driver); | 1669 | ret = usb_register(&sd_driver); |
1670 | if (ret < 0) | 1670 | if (ret < 0) |
1671 | return -1; | 1671 | return ret; |
1672 | PDEBUG(D_PROBE, "registered"); | 1672 | PDEBUG(D_PROBE, "registered"); |
1673 | return 0; | 1673 | return 0; |
1674 | } | 1674 | } |
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 1538350849f9..173c0c43fd1f 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -1199,7 +1199,7 @@ static int __init sd_mod_init(void) | |||
1199 | int ret; | 1199 | int ret; |
1200 | ret = usb_register(&sd_driver); | 1200 | ret = usb_register(&sd_driver); |
1201 | if (ret < 0) | 1201 | if (ret < 0) |
1202 | return -1; | 1202 | return ret; |
1203 | PDEBUG(D_PROBE, "registered"); | 1203 | PDEBUG(D_PROBE, "registered"); |
1204 | return 0; | 1204 | return 0; |
1205 | } | 1205 | } |
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index 8743c03ed4aa..ba31eb318652 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -563,7 +563,7 @@ static int __init sd_mod_init(void) | |||
563 | int ret; | 563 | int ret; |
564 | ret = usb_register(&sd_driver); | 564 | ret = usb_register(&sd_driver); |
565 | if (ret < 0) | 565 | if (ret < 0) |
566 | return -1; | 566 | return ret; |
567 | info("registered"); | 567 | info("registered"); |
568 | return 0; | 568 | return 0; |
569 | } | 569 | } |
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx.c b/drivers/media/video/gspca/stv06xx/stv06xx.c index c43534db74bb..9dff2e65b116 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx.c | |||
@@ -503,7 +503,7 @@ static int __init sd_mod_init(void) | |||
503 | int ret; | 503 | int ret; |
504 | ret = usb_register(&sd_driver); | 504 | ret = usb_register(&sd_driver); |
505 | if (ret < 0) | 505 | if (ret < 0) |
506 | return -1; | 506 | return ret; |
507 | PDEBUG(D_PROBE, "registered"); | 507 | PDEBUG(D_PROBE, "registered"); |
508 | return 0; | 508 | return 0; |
509 | } | 509 | } |
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index a7d324cf1a5c..d9c9c440f020 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -1467,7 +1467,7 @@ static int __init sd_mod_init(void) | |||
1467 | int ret; | 1467 | int ret; |
1468 | ret = usb_register(&sd_driver); | 1468 | ret = usb_register(&sd_driver); |
1469 | if (ret < 0) | 1469 | if (ret < 0) |
1470 | return -1; | 1470 | return ret; |
1471 | PDEBUG(D_PROBE, "registered"); | 1471 | PDEBUG(D_PROBE, "registered"); |
1472 | return 0; | 1472 | return 0; |
1473 | } | 1473 | } |
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 1dfdbf58526f..76ba2c9588d7 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -1174,7 +1174,7 @@ static int __init sd_mod_init(void) | |||
1174 | int ret; | 1174 | int ret; |
1175 | ret = usb_register(&sd_driver); | 1175 | ret = usb_register(&sd_driver); |
1176 | if (ret < 0) | 1176 | if (ret < 0) |
1177 | return -1; | 1177 | return ret; |
1178 | PDEBUG(D_PROBE, "registered"); | 1178 | PDEBUG(D_PROBE, "registered"); |
1179 | return 0; | 1179 | return 0; |
1180 | } | 1180 | } |
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index 0bcbdb22e018..86e4f0e3d917 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -572,7 +572,7 @@ static int __init sd_mod_init(void) | |||
572 | int ret; | 572 | int ret; |
573 | ret = usb_register(&sd_driver); | 573 | ret = usb_register(&sd_driver); |
574 | if (ret < 0) | 574 | if (ret < 0) |
575 | return -1; | 575 | return ret; |
576 | PDEBUG(D_PROBE, "registered"); | 576 | PDEBUG(D_PROBE, "registered"); |
577 | return 0; | 577 | return 0; |
578 | } | 578 | } |
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 0f475ec2ab93..ab3108000756 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -2462,7 +2462,7 @@ static int __init sd_mod_init(void) | |||
2462 | int ret; | 2462 | int ret; |
2463 | ret = usb_register(&sd_driver); | 2463 | ret = usb_register(&sd_driver); |
2464 | if (ret < 0) | 2464 | if (ret < 0) |
2465 | return -1; | 2465 | return ret; |
2466 | PDEBUG(D_PROBE, "registered"); | 2466 | PDEBUG(D_PROBE, "registered"); |
2467 | return 0; | 2467 | return 0; |
2468 | } | 2468 | } |
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index afc10a9ac539..e0dbbc2b999a 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.c | |||
@@ -7602,7 +7602,7 @@ static int __init sd_mod_init(void) | |||
7602 | int ret; | 7602 | int ret; |
7603 | ret = usb_register(&sd_driver); | 7603 | ret = usb_register(&sd_driver); |
7604 | if (ret < 0) | 7604 | if (ret < 0) |
7605 | return -1; | 7605 | return ret; |
7606 | PDEBUG(D_PROBE, "registered"); | 7606 | PDEBUG(D_PROBE, "registered"); |
7607 | return 0; | 7607 | return 0; |
7608 | } | 7608 | } |