aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-12 15:40:41 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-12 15:40:41 -0500
commit2485a4b610171f4e1c4ab0d053569747795c1bbe (patch)
tree1a4532e447c2640bc1378e25e1ead9a7ba7847a5 /drivers/input/keyboard
parent6733e54b669c600eb8e451939ad55130db664fed (diff)
parent52965cc012f7a3cf35f06485ec275ebf3b3fddae (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: bcm5974 - set BUTTONPAD property Input: serio_raw - return proper result when serio_raw_write fails Input: serio_raw - really signal HUP upon disconnect Input: serio_raw - remove stray semicolon Input: revert some over-zealous conversions to module_platform_driver()
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r--drivers/input/keyboard/amikbd.c15
-rw-r--r--drivers/input/keyboard/davinci_keyscan.c13
-rw-r--r--drivers/input/keyboard/nomadik-ske-keypad.c13
3 files changed, 38 insertions, 3 deletions
diff --git a/drivers/input/keyboard/amikbd.c b/drivers/input/keyboard/amikbd.c
index 6df5f6aa7908..79172af164f2 100644
--- a/drivers/input/keyboard/amikbd.c
+++ b/drivers/input/keyboard/amikbd.c
@@ -259,6 +259,19 @@ static struct platform_driver amikbd_driver = {
259 .owner = THIS_MODULE, 259 .owner = THIS_MODULE,
260 }, 260 },
261}; 261};
262module_platform_driver(amikbd_driver); 262
263static int __init amikbd_init(void)
264{
265 return platform_driver_probe(&amikbd_driver, amikbd_probe);
266}
267
268module_init(amikbd_init);
269
270static void __exit amikbd_exit(void)
271{
272 platform_driver_unregister(&amikbd_driver);
273}
274
275module_exit(amikbd_exit);
263 276
264MODULE_ALIAS("platform:amiga-keyboard"); 277MODULE_ALIAS("platform:amiga-keyboard");
diff --git a/drivers/input/keyboard/davinci_keyscan.c b/drivers/input/keyboard/davinci_keyscan.c
index 469825247552..9d82b3aeff5e 100644
--- a/drivers/input/keyboard/davinci_keyscan.c
+++ b/drivers/input/keyboard/davinci_keyscan.c
@@ -328,7 +328,18 @@ static struct platform_driver davinci_ks_driver = {
328 }, 328 },
329 .remove = __devexit_p(davinci_ks_remove), 329 .remove = __devexit_p(davinci_ks_remove),
330}; 330};
331module_platform_driver(davinci_ks_driver); 331
332static int __init davinci_ks_init(void)
333{
334 return platform_driver_probe(&davinci_ks_driver, davinci_ks_probe);
335}
336module_init(davinci_ks_init);
337
338static void __exit davinci_ks_exit(void)
339{
340 platform_driver_unregister(&davinci_ks_driver);
341}
342module_exit(davinci_ks_exit);
332 343
333MODULE_AUTHOR("Miguel Aguilar"); 344MODULE_AUTHOR("Miguel Aguilar");
334MODULE_DESCRIPTION("Texas Instruments DaVinci Key Scan Driver"); 345MODULE_DESCRIPTION("Texas Instruments DaVinci Key Scan Driver");
diff --git a/drivers/input/keyboard/nomadik-ske-keypad.c b/drivers/input/keyboard/nomadik-ske-keypad.c
index 5a71e55c9c54..e35566aa102f 100644
--- a/drivers/input/keyboard/nomadik-ske-keypad.c
+++ b/drivers/input/keyboard/nomadik-ske-keypad.c
@@ -390,7 +390,18 @@ static struct platform_driver ske_keypad_driver = {
390 .probe = ske_keypad_probe, 390 .probe = ske_keypad_probe,
391 .remove = __devexit_p(ske_keypad_remove), 391 .remove = __devexit_p(ske_keypad_remove),
392}; 392};
393module_platform_driver(ske_keypad_driver); 393
394static int __init ske_keypad_init(void)
395{
396 return platform_driver_probe(&ske_keypad_driver, ske_keypad_probe);
397}
398module_init(ske_keypad_init);
399
400static void __exit ske_keypad_exit(void)
401{
402 platform_driver_unregister(&ske_keypad_driver);
403}
404module_exit(ske_keypad_exit);
394 405
395MODULE_LICENSE("GPL v2"); 406MODULE_LICENSE("GPL v2");
396MODULE_AUTHOR("Naveen Kumar <naveen.gaddipati@stericsson.com> / Sundar Iyer <sundar.iyer@stericsson.com>"); 407MODULE_AUTHOR("Naveen Kumar <naveen.gaddipati@stericsson.com> / Sundar Iyer <sundar.iyer@stericsson.com>");