diff options
Diffstat (limited to 'drivers/input/keyboard/tc3589x-keypad.c')
-rw-r--r-- | drivers/input/keyboard/tc3589x-keypad.c | 15 |
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 | */ |
83 | struct tc_keypad { | 85 | struct 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 | 458 | module_platform_driver(tc3589x_keypad_driver); | |
457 | static int __init tc3589x_keypad_init(void) | ||
458 | { | ||
459 | return platform_driver_register(&tc3589x_keypad_driver); | ||
460 | } | ||
461 | module_init(tc3589x_keypad_init); | ||
462 | |||
463 | static void __exit tc3589x_keypad_exit(void) | ||
464 | { | ||
465 | return platform_driver_unregister(&tc3589x_keypad_driver); | ||
466 | } | ||
467 | module_exit(tc3589x_keypad_exit); | ||
468 | 459 | ||
469 | MODULE_LICENSE("GPL v2"); | 460 | MODULE_LICENSE("GPL v2"); |
470 | MODULE_AUTHOR("Jayeeta Banerjee/Sundar Iyer"); | 461 | MODULE_AUTHOR("Jayeeta Banerjee/Sundar Iyer"); |