diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 15:40:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 15:40:41 -0500 |
commit | 2485a4b610171f4e1c4ab0d053569747795c1bbe (patch) | |
tree | 1a4532e447c2640bc1378e25e1ead9a7ba7847a5 /drivers/input/keyboard | |
parent | 6733e54b669c600eb8e451939ad55130db664fed (diff) | |
parent | 52965cc012f7a3cf35f06485ec275ebf3b3fddae (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.c | 15 | ||||
-rw-r--r-- | drivers/input/keyboard/davinci_keyscan.c | 13 | ||||
-rw-r--r-- | drivers/input/keyboard/nomadik-ske-keypad.c | 13 |
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 | }; |
262 | module_platform_driver(amikbd_driver); | 262 | |
263 | static int __init amikbd_init(void) | ||
264 | { | ||
265 | return platform_driver_probe(&amikbd_driver, amikbd_probe); | ||
266 | } | ||
267 | |||
268 | module_init(amikbd_init); | ||
269 | |||
270 | static void __exit amikbd_exit(void) | ||
271 | { | ||
272 | platform_driver_unregister(&amikbd_driver); | ||
273 | } | ||
274 | |||
275 | module_exit(amikbd_exit); | ||
263 | 276 | ||
264 | MODULE_ALIAS("platform:amiga-keyboard"); | 277 | MODULE_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 | }; |
331 | module_platform_driver(davinci_ks_driver); | 331 | |
332 | static int __init davinci_ks_init(void) | ||
333 | { | ||
334 | return platform_driver_probe(&davinci_ks_driver, davinci_ks_probe); | ||
335 | } | ||
336 | module_init(davinci_ks_init); | ||
337 | |||
338 | static void __exit davinci_ks_exit(void) | ||
339 | { | ||
340 | platform_driver_unregister(&davinci_ks_driver); | ||
341 | } | ||
342 | module_exit(davinci_ks_exit); | ||
332 | 343 | ||
333 | MODULE_AUTHOR("Miguel Aguilar"); | 344 | MODULE_AUTHOR("Miguel Aguilar"); |
334 | MODULE_DESCRIPTION("Texas Instruments DaVinci Key Scan Driver"); | 345 | MODULE_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 | }; |
393 | module_platform_driver(ske_keypad_driver); | 393 | |
394 | static int __init ske_keypad_init(void) | ||
395 | { | ||
396 | return platform_driver_probe(&ske_keypad_driver, ske_keypad_probe); | ||
397 | } | ||
398 | module_init(ske_keypad_init); | ||
399 | |||
400 | static void __exit ske_keypad_exit(void) | ||
401 | { | ||
402 | platform_driver_unregister(&ske_keypad_driver); | ||
403 | } | ||
404 | module_exit(ske_keypad_exit); | ||
394 | 405 | ||
395 | MODULE_LICENSE("GPL v2"); | 406 | MODULE_LICENSE("GPL v2"); |
396 | MODULE_AUTHOR("Naveen Kumar <naveen.gaddipati@stericsson.com> / Sundar Iyer <sundar.iyer@stericsson.com>"); | 407 | MODULE_AUTHOR("Naveen Kumar <naveen.gaddipati@stericsson.com> / Sundar Iyer <sundar.iyer@stericsson.com>"); |