summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/amimouse.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-18 08:28:00 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-03-18 08:37:25 +0400
commite492fe2751dbb14e1a24f888e9b174bc9bafee21 (patch)
treeee132d540460624b6211dc58fe88bad7d810691e /drivers/input/mouse/amimouse.c
parent0442ce1cff6597ac36003342d31565f7358e75df (diff)
downloadlinux-e492fe2751dbb14e1a24f888e9b174bc9bafee21.tar.xz
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/mouse/amimouse.c')
-rw-r--r--drivers/input/mouse/amimouse.c14
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");