Skip to content

Commit

Permalink
Staging: comedi: usbduxfast: annotate __init and __exit functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 4e8ad0d commit 7dcb582
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/comedi/drivers/usbduxfast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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");
Expand All @@ -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);
Expand Down

0 comments on commit 7dcb582

Please sign in to comment.