aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2009-03-27 14:57:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:23 -0400
commit5d3fa30ddcc93bb5e0078f67cfe8d277f6334c57 (patch)
tree9c3f01bb82a80a9f993be96686e79a16bfd930ea
parentdd72cb3eda68067f27e928a44aa40d82f972669a (diff)
V4L/DVB (11447): gspca - mr97310a: Return good error code in 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>
-rw-r--r--drivers/media/video/gspca/mr97310a.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c
index 2a901a4a6f00..f9da55b20fa3 100644
--- a/drivers/media/video/gspca/mr97310a.c
+++ b/drivers/media/video/gspca/mr97310a.c
@@ -347,8 +347,11 @@ static struct usb_driver sd_driver = {
347/* -- module insert / remove -- */ 347/* -- module insert / remove -- */
348static int __init sd_mod_init(void) 348static int __init sd_mod_init(void)
349{ 349{
350 if (usb_register(&sd_driver) < 0) 350 int ret;
351 return -1; 351
352 ret = usb_register(&sd_driver);
353 if (ret < 0)
354 return ret;
352 PDEBUG(D_PROBE, "registered"); 355 PDEBUG(D_PROBE, "registered");
353 return 0; 356 return 0;
354} 357}