From f969d69ba9f952e5bdd38278e25e26a3e4a61a70 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 29 Jan 2000 01:41:54 +0000 Subject: Merge with 2.3.27. --- drivers/char/adbmouse.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'drivers/char/adbmouse.c') diff --git a/drivers/char/adbmouse.c b/drivers/char/adbmouse.c index 3fb2afea5..a33693c14 100644 --- a/drivers/char/adbmouse.c +++ b/drivers/char/adbmouse.c @@ -148,7 +148,7 @@ static struct busmouse adb_mouse = ADB_MOUSE_MINOR, "adbmouse", open_mouse, release_mouse, 7 }; -int __init adb_mouse_init(void) +static int __init adb_mouse_init(void) { #ifdef __powerpc__ if ((_machine != _MACH_chrp) && (_machine != _MACH_Pmac)) @@ -170,6 +170,8 @@ int __init adb_mouse_init(void) return msedev < 0 ? msedev : 0; } +#ifndef MODULE + /* * XXX this function is misnamed. * It is called if the kernel is booted with the adb_buttons=xxx @@ -193,15 +195,12 @@ static int __init adb_mouse_setup(char *str) __setup("adb_buttons=", adb_mouse_setup); -#ifdef MODULE -int init_module(void) -{ - return adb_mouse_init(); -} +#endif /* !MODULE */ -void cleanup_module(void) +static void __exit adb_mouse_cleanup(void) { unregister_busmouse(msedev); } -#endif +module_init(adb_mouse_init); +module_exit(adb_mouse_cleanup); -- cgit v1.2.3