aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/omap4-keypad.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 14:08:39 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:41 -0500
commit5146c84f87c8aa3d115cea0d77ed3553df426752 (patch)
tree9ecbaa48133f7b879f240e8b69f0c4b806b55cca /drivers/input/keyboard/omap4-keypad.c
parent3bfd5c5baf66e975b0f365a0cda8d75bf2953ebe (diff)
Input: keyboard - use macro module_platform_driver()
Commit 940ab88962bc1aff3273a8356d64577a6e386736 introduced a new macro to save some platform_driver boilerplate code. Use it. Signed-off-by: JJ Ding <dgdunix@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard/omap4-keypad.c')
-rw-r--r--drivers/input/keyboard/omap4-keypad.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c
index c51a3c4a7feb..d5c5d77f4b82 100644
--- a/drivers/input/keyboard/omap4-keypad.c
+++ b/drivers/input/keyboard/omap4-keypad.c
@@ -335,18 +335,7 @@ static struct platform_driver omap4_keypad_driver = {
335 .owner = THIS_MODULE, 335 .owner = THIS_MODULE,
336 }, 336 },
337}; 337};
338 338module_platform_driver(omap4_keypad_driver);
339static int __init omap4_keypad_init(void)
340{
341 return platform_driver_register(&omap4_keypad_driver);
342}
343module_init(omap4_keypad_init);
344
345static void __exit omap4_keypad_exit(void)
346{
347 platform_driver_unregister(&omap4_keypad_driver);
348}
349module_exit(omap4_keypad_exit);
350 339
351MODULE_AUTHOR("Texas Instruments"); 340MODULE_AUTHOR("Texas Instruments");
352MODULE_DESCRIPTION("OMAP4 Keypad Driver"); 341MODULE_DESCRIPTION("OMAP4 Keypad Driver");