diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-18 05:28:00 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-18 05:37:25 +0100 |
commit | e492fe2751dbb14e1a24f888e9b174bc9bafee21 (patch) | |
tree | ee132d540460624b6211dc58fe88bad7d810691e /drivers/input | |
parent | Input: nomadik-ske-keypad - use module_platform_driver_probe macro (diff) | |
download | linux-e492fe2751dbb14e1a24f888e9b174bc9bafee21.tar.xz linux-e492fe2751dbb14e1a24f888e9b174bc9bafee21.zip |
Input: amimouse - use module_platform_driver_probe macro
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/mouse/amimouse.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/mouse/amimouse.c b/drivers/input/mouse/amimouse.c index 5fa99341a39d..b55d5af217a7 100644 --- a/drivers/input/mouse/amimouse.c +++ b/drivers/input/mouse/amimouse.c @@ -146,18 +146,6 @@ static struct platform_driver amimouse_driver = { }, }; -static int __init amimouse_init(void) -{ - return platform_driver_probe(&amimouse_driver, amimouse_probe); -} - -module_init(amimouse_init); - -static void __exit amimouse_exit(void) -{ - platform_driver_unregister(&amimouse_driver); -} - -module_exit(amimouse_exit); +module_platform_driver_probe(amimouse_driver, amimouse_probe); MODULE_ALIAS("platform:amiga-mouse"); |