diff options
Diffstat (limited to 'drivers/char/adbmouse.c')
-rw-r--r-- | drivers/char/adbmouse.c | 15 |
1 files changed, 7 insertions, 8 deletions
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); |