summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/jl2005bcd.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-12-12 05:58:12 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 13:37:11 -0200
commite52ec68015b81ccd5f0950d56328b78f43ae2985 (patch)
tree9bc32daed8f3d746f74157165fe6d794e4c2f889 /drivers/media/usb/gspca/jl2005bcd.c
parentc3075388881fbafda3b0991fbefc6a5eef4d483c (diff)
[media] gspca: Use module_usb_driver macro
module_usb_driver eliminates a lot of boilerplate by replacing module_init() and module_exit() calls. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/gspca/jl2005bcd.c')
-rw-r--r--drivers/media/usb/gspca/jl2005bcd.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/media/usb/gspca/jl2005bcd.c b/drivers/media/usb/gspca/jl2005bcd.c
index 62ba80d9b99..fdaeeb14453 100644
--- a/drivers/media/usb/gspca/jl2005bcd.c
+++ b/drivers/media/usb/gspca/jl2005bcd.c
@@ -536,20 +536,4 @@ static struct usb_driver sd_driver = {
#endif
};
-/* -- module insert / remove -- */
-static int __init sd_mod_init(void)
-{
- int ret;
-
- ret = usb_register(&sd_driver);
- if (ret < 0)
- return ret;
- return 0;
-}
-static void __exit sd_mod_exit(void)
-{
- usb_deregister(&sd_driver);
-}
-
-module_init(sd_mod_init);
-module_exit(sd_mod_exit);
+module_usb_driver(sd_driver);