diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:42:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-18 12:42:11 -0500 |
commit | bac2c126e452eb00f91305ba2c04a8b2bd95acf0 (patch) | |
tree | 14e2c93ad911e8e303251d206fd83e5f0d103ca1 /drivers/staging/frontier/alphatrack.c | |
parent | 65db43054065790a75291b0834657445fea2cf56 (diff) |
USB: convert drivers/staging/* to use module_usb_driver()
This converts the drivers in drivers/staging/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.
Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.
Cc: "David Täht" <d@teklibre.com>
Cc: Marek Belisko <marek.belisko@gmail.com>
Cc: Al Cho <acho@novell.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Huajun Li <huajun.li.lee@gmail.com>
Cc: Zac Storer <zac.3.14159@gmail.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: edwin_rong <edwin_rong@realsil.com.cn>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Julia Lawall <julia@diku.dk>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Joe Perches <joe@perches.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/frontier/alphatrack.c')
-rw-r--r-- | drivers/staging/frontier/alphatrack.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/drivers/staging/frontier/alphatrack.c b/drivers/staging/frontier/alphatrack.c index 2babb034a25..d8efed65744 100644 --- a/drivers/staging/frontier/alphatrack.c +++ b/drivers/staging/frontier/alphatrack.c | |||
@@ -867,30 +867,4 @@ static struct usb_driver usb_alphatrack_driver = { | |||
867 | .id_table = usb_alphatrack_table, | 867 | .id_table = usb_alphatrack_table, |
868 | }; | 868 | }; |
869 | 869 | ||
870 | /** | 870 | module_usb_driver(usb_alphatrack_driver); |
871 | * usb_alphatrack_init | ||
872 | */ | ||
873 | static int __init usb_alphatrack_init(void) | ||
874 | { | ||
875 | int retval; | ||
876 | |||
877 | /* register this driver with the USB subsystem */ | ||
878 | retval = usb_register(&usb_alphatrack_driver); | ||
879 | if (retval) | ||
880 | err("usb_register failed for the " __FILE__ | ||
881 | " driver. Error number %d\n", retval); | ||
882 | |||
883 | return retval; | ||
884 | } | ||
885 | |||
886 | /** | ||
887 | * usb_alphatrack_exit | ||
888 | */ | ||
889 | static void __exit usb_alphatrack_exit(void) | ||
890 | { | ||
891 | /* deregister this driver with the USB subsystem */ | ||
892 | usb_deregister(&usb_alphatrack_driver); | ||
893 | } | ||
894 | |||
895 | module_init(usb_alphatrack_init); | ||
896 | module_exit(usb_alphatrack_exit); | ||