summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2002-12-07 19:42:18 -0200
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2002-12-07 19:42:18 -0200
commite3e69f85833ada225eeb9daafc3bd8f48a0a0981 (patch)
treefe0c3e43050a2164a382363e6ca9a3362f5e3484
parentd4bbb5541942bfdcfe3f3d55ed29f625eb1442e8 (diff)
o stallion: use module_{init,exit}, {cleanup,init}_module now are macros
-rw-r--r--drivers/char/stallion.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c
index 32f194b8fe68..9a990ab0c00b 100644
--- a/drivers/char/stallion.c
+++ b/drivers/char/stallion.c
@@ -757,7 +757,7 @@ static struct file_operations stl_fsiomem = {
* Loadable module initialization stuff.
*/
-int init_module()
+static int __init stallion_module_init(void)
{
unsigned long flags;
@@ -775,7 +775,7 @@ int init_module()
/*****************************************************************************/
-void cleanup_module()
+static void __exit stallion_module_exit(void)
{
stlbrd_t *brdp;
stlpanel_t *panelp;
@@ -851,6 +851,9 @@ void cleanup_module()
restore_flags(flags);
}
+module_init(stallion_module_init);
+module_exit(stallion_module_exit);
+
/*****************************************************************************/
/*