aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/tc3589x-keypad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/tc3589x-keypad.c')
-rw-r--r--drivers/input/keyboard/tc3589x-keypad.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/input/keyboard/tc3589x-keypad.c b/drivers/input/keyboard/tc3589x-keypad.c
index f60c9e82f204..2dee3e4e7c6f 100644
--- a/drivers/input/keyboard/tc3589x-keypad.c
+++ b/drivers/input/keyboard/tc3589x-keypad.c
@@ -74,11 +74,13 @@
74 74
75/** 75/**
76 * struct tc_keypad - data structure used by keypad driver 76 * struct tc_keypad - data structure used by keypad driver
77 * @tc3589x: pointer to tc35893
77 * @input: pointer to input device object 78 * @input: pointer to input device object
78 * @board: keypad platform device 79 * @board: keypad platform device
79 * @krow: number of rows 80 * @krow: number of rows
80 * @kcol: number of coloumns 81 * @kcol: number of coloumns
81 * @keymap: matrix scan code table for keycodes 82 * @keymap: matrix scan code table for keycodes
83 * @keypad_stopped: holds keypad status
82 */ 84 */
83struct tc_keypad { 85struct tc_keypad {
84 struct tc3589x *tc3589x; 86 struct tc3589x *tc3589x;
@@ -453,18 +455,7 @@ static struct platform_driver tc3589x_keypad_driver = {
453 .probe = tc3589x_keypad_probe, 455 .probe = tc3589x_keypad_probe,
454 .remove = __devexit_p(tc3589x_keypad_remove), 456 .remove = __devexit_p(tc3589x_keypad_remove),
455}; 457};
456 458module_platform_driver(tc3589x_keypad_driver);
457static int __init tc3589x_keypad_init(void)
458{
459 return platform_driver_register(&tc3589x_keypad_driver);
460}
461module_init(tc3589x_keypad_init);
462
463static void __exit tc3589x_keypad_exit(void)
464{
465 return platform_driver_unregister(&tc3589x_keypad_driver);
466}
467module_exit(tc3589x_keypad_exit);
468 459
469MODULE_LICENSE("GPL v2"); 460MODULE_LICENSE("GPL v2");
470MODULE_AUTHOR("Jayeeta Banerjee/Sundar Iyer"); 461MODULE_AUTHOR("Jayeeta Banerjee/Sundar Iyer");