From: Andres Salomon Date: Tue, 20 Nov 2007 22:43:45 +0000 (-0500) Subject: libertas: mark module_init/exit functions as __init/__exit X-Git-Tag: v2.6.25-rc1~1162^2~538 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb910fd3ada36cd9fbf6e037b87f2a83fd740b7;p=linux-2.6 libertas: mark module_init/exit functions as __init/__exit Signed-off-by: Andres Salomon Signed-off-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 0c762eea7a..de4ad57fae 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c @@ -1052,7 +1052,7 @@ static struct sdio_driver if_sdio_driver = { /* Module functions */ /*******************************************************************/ -static int if_sdio_init_module(void) +static int __init if_sdio_init_module(void) { int ret = 0; @@ -1068,7 +1068,7 @@ static int if_sdio_init_module(void) return ret; } -static void if_sdio_exit_module(void) +static void __exit if_sdio_exit_module(void) { lbs_deb_enter(LBS_DEB_SDIO); diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 6d19d26770..f7d2b46340 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c @@ -1020,7 +1020,7 @@ static struct usb_driver if_usb_driver = { .resume = if_usb_resume, }; -static int if_usb_init_module(void) +static int __init if_usb_init_module(void) { int ret = 0; @@ -1032,7 +1032,7 @@ static int if_usb_init_module(void) return ret; } -static void if_usb_exit_module(void) +static void __exit if_usb_exit_module(void) { struct usb_card_rec *cardp, *cardp_temp; diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 825970af34..f0da18c331 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c @@ -1510,7 +1510,7 @@ int lbs_reset_device(lbs_private *priv) } EXPORT_SYMBOL_GPL(lbs_reset_device); -static int lbs_init_module(void) +static int __init lbs_init_module(void) { lbs_deb_enter(LBS_DEB_MAIN); lbs_debugfs_init(); @@ -1518,7 +1518,7 @@ static int lbs_init_module(void) return 0; } -static void lbs_exit_module(void) +static void __exit lbs_exit_module(void) { lbs_deb_enter(LBS_DEB_MAIN);