Staging: comedi: usbduxfast: annotate __init and __exit functions
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Mon, 16 Feb 2009 20:31:29 +0000 (21:31 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:46 +0000 (14:53 -0700)
This patch adds __init and __exit annotations to proper functions in the
usbduxfast driver.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Bernd Porr <BerndPorr@f2s.com>
Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbduxfast.c

index c6d34703a344f38e1698e0e6ce4bca1e0a47a2db..861d8989a49118df361ca7c3ac0898b665f5b139 100644 (file)
@@ -1826,7 +1826,7 @@ static comedi_driver driver_usbduxfast = {
        .detach         = usbduxfast_detach
 };
 
-static void init_usb_devices(void)
+static void __init init_usb_devices(void)
 {
        int index;
 
@@ -1875,7 +1875,7 @@ static struct usb_driver usbduxfastsub_driver = {
  * Can't use the nice macro as I have also to initialise the USB subsystem:
  * registering the usb-system _and_ the comedi-driver
  */
-static int init_usbduxfast(void)
+static int __init init_usbduxfast(void)
 {
        printk(KERN_INFO
               KBUILD_MODNAME ": " DRIVER_VERSION ":" DRIVER_DESC "\n");
@@ -1888,7 +1888,7 @@ static int init_usbduxfast(void)
 /*
  * deregistering the comedi driver and the usb-subsystem
  */
-static void exit_usbduxfast(void)
+static void __exit exit_usbduxfast(void)
 {
        comedi_driver_unregister(&driver_usbduxfast);
        usb_deregister(&usbduxfastsub_driver);