summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bpp.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
commitb63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch)
tree0a343ce219e2b8b38a5d702d66032c57b83d9720 /drivers/sbus/char/bpp.c
parenta9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff)
Merge with 2.4.0-test11.
Diffstat (limited to 'drivers/sbus/char/bpp.c')
-rw-r--r--drivers/sbus/char/bpp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/sbus/char/bpp.c b/drivers/sbus/char/bpp.c
index 4579404e3..c96a141a5 100644
--- a/drivers/sbus/char/bpp.c
+++ b/drivers/sbus/char/bpp.c
@@ -1017,11 +1017,7 @@ static inline void freeLptPort(int idx)
static devfs_handle_t devfs_handle;
-#ifdef MODULE
-int init_module(void)
-#else
-int __init bpp_init(void)
-#endif
+static int __init bpp_init(void)
{
int rc;
unsigned idx;
@@ -1046,8 +1042,7 @@ int __init bpp_init(void)
return 0;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit bpp_cleanup(void)
{
unsigned idx;
@@ -1059,4 +1054,6 @@ void cleanup_module(void)
freeLptPort(idx);
}
}
-#endif
+
+module_init(bpp_init);
+module_exit(bpp_cleanup);