diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-18 05:27:11 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-18 05:37:18 +0100 |
commit | e67d541ff2574ea30b046642217ac3ed98826e13 (patch) | |
tree | 95c0a8ed0a1121c17278f1d0de5a71ae1fe25839 /drivers/input/keyboard/amikbd.c | |
parent | Input: twl4030-pwrbutton - use module_platform_driver_probe macro (diff) | |
download | linux-e67d541ff2574ea30b046642217ac3ed98826e13.tar.xz linux-e67d541ff2574ea30b046642217ac3ed98826e13.zip |
Input: amikbd - 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/keyboard/amikbd.c')
-rw-r--r-- | drivers/input/keyboard/amikbd.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/keyboard/amikbd.c b/drivers/input/keyboard/amikbd.c index 79172af164f2..ba0b36f7daea 100644 --- a/drivers/input/keyboard/amikbd.c +++ b/drivers/input/keyboard/amikbd.c @@ -260,18 +260,6 @@ static struct platform_driver amikbd_driver = { }, }; -static int __init amikbd_init(void) -{ - return platform_driver_probe(&amikbd_driver, amikbd_probe); -} - -module_init(amikbd_init); - -static void __exit amikbd_exit(void) -{ - platform_driver_unregister(&amikbd_driver); -} - -module_exit(amikbd_exit); +module_platform_driver_probe(amikbd_driver, amikbd_probe); MODULE_ALIAS("platform:amiga-keyboard"); |