Commit 3c0d4464 authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman

Staging: et131x: adding __init/__exit macros

Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of ./staging/et131x/et131x_initpci.c

Greg, please have a look at the small patch and either pull it through
your staging tree, or please ack' it so Jiri can pull it through the trivial tree.
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 224f0ef4
...@@ -989,7 +989,7 @@ static struct pci_driver et131x_driver = { ...@@ -989,7 +989,7 @@ static struct pci_driver et131x_driver = {
* *
* Returns 0 on success, errno on failure (as defined in errno.h) * Returns 0 on success, errno on failure (as defined in errno.h)
*/ */
static int et131x_init_module(void) static int __init et131x_init_module(void)
{ {
if (et131x_speed_set < PARM_SPEED_DUPLEX_MIN || if (et131x_speed_set < PARM_SPEED_DUPLEX_MIN ||
et131x_speed_set > PARM_SPEED_DUPLEX_MAX) { et131x_speed_set > PARM_SPEED_DUPLEX_MAX) {
...@@ -1002,7 +1002,7 @@ static int et131x_init_module(void) ...@@ -1002,7 +1002,7 @@ static int et131x_init_module(void)
/** /**
* et131x_cleanup_module - The entry point called on driver cleanup * et131x_cleanup_module - The entry point called on driver cleanup
*/ */
static void et131x_cleanup_module(void) static void __exit et131x_cleanup_module(void)
{ {
pci_unregister_driver(&et131x_driver); pci_unregister_driver(&et131x_driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment