diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-18 00:28:00 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-18 00:37:25 -0400 |
commit | e492fe2751dbb14e1a24f888e9b174bc9bafee21 (patch) | |
tree | ee132d540460624b6211dc58fe88bad7d810691e | |
parent | 0442ce1cff6597ac36003342d31565f7358e75df (diff) |
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>
-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 = { | |||
146 | }, | 146 | }, |
147 | }; | 147 | }; |
148 | 148 | ||
149 | static int __init amimouse_init(void) | 149 | module_platform_driver_probe(amimouse_driver, amimouse_probe); |
150 | { | ||
151 | return platform_driver_probe(&amimouse_driver, amimouse_probe); | ||
152 | } | ||
153 | |||
154 | module_init(amimouse_init); | ||
155 | |||
156 | static void __exit amimouse_exit(void) | ||
157 | { | ||
158 | platform_driver_unregister(&amimouse_driver); | ||
159 | } | ||
160 | |||
161 | module_exit(amimouse_exit); | ||
162 | 150 | ||
163 | MODULE_ALIAS("platform:amiga-mouse"); | 151 | MODULE_ALIAS("platform:amiga-mouse"); |