aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sq905c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/sq905c.c')
-rw-r--r--drivers/media/video/gspca/sq905c.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/video/gspca/sq905c.c b/drivers/media/video/gspca/sq905c.c
index 4c70628ca615..18c8145bdfb4 100644
--- a/drivers/media/video/gspca/sq905c.c
+++ b/drivers/media/video/gspca/sq905c.c
@@ -341,19 +341,12 @@ static struct usb_driver sd_driver = {
341/* -- module insert / remove -- */ 341/* -- module insert / remove -- */
342static int __init sd_mod_init(void) 342static int __init sd_mod_init(void)
343{ 343{
344 int ret; 344 return usb_register(&sd_driver);
345
346 ret = usb_register(&sd_driver);
347 if (ret < 0)
348 return ret;
349 PDEBUG(D_PROBE, "registered");
350 return 0;
351} 345}
352 346
353static void __exit sd_mod_exit(void) 347static void __exit sd_mod_exit(void)
354{ 348{
355 usb_deregister(&sd_driver); 349 usb_deregister(&sd_driver);
356 PDEBUG(D_PROBE, "deregistered");
357} 350}
358 351
359module_init(sd_mod_init); 352module_init(sd_mod_init);