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/misc/twl4030-pwrbutton.c | |
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/misc/twl4030-pwrbutton.c')
-rw-r--r-- | drivers/input/misc/twl4030-pwrbutton.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 19a68828cd86..38e4b507b94c 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c | |||
@@ -107,14 +107,25 @@ static int __exit twl4030_pwrbutton_remove(struct platform_device *pdev) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | static struct platform_driver twl4030_pwrbutton_driver = { | 109 | static struct platform_driver twl4030_pwrbutton_driver = { |
110 | .probe = twl4030_pwrbutton_probe, | ||
111 | .remove = __exit_p(twl4030_pwrbutton_remove), | 110 | .remove = __exit_p(twl4030_pwrbutton_remove), |
112 | .driver = { | 111 | .driver = { |
113 | .name = "twl4030_pwrbutton", | 112 | .name = "twl4030_pwrbutton", |
114 | .owner = THIS_MODULE, | 113 | .owner = THIS_MODULE, |
115 | }, | 114 | }, |
116 | }; | 115 | }; |
117 | module_platform_driver(twl4030_pwrbutton_driver); | 116 | |
117 | static int __init twl4030_pwrbutton_init(void) | ||
118 | { | ||
119 | return platform_driver_probe(&twl4030_pwrbutton_driver, | ||
120 | twl4030_pwrbutton_probe); | ||
121 | } | ||
122 | module_init(twl4030_pwrbutton_init); | ||
123 | |||
124 | static void __exit twl4030_pwrbutton_exit(void) | ||
125 | { | ||
126 | platform_driver_unregister(&twl4030_pwrbutton_driver); | ||
127 | } | ||
128 | module_exit(twl4030_pwrbutton_exit); | ||
118 | 129 | ||
119 | MODULE_ALIAS("platform:twl4030_pwrbutton"); | 130 | MODULE_ALIAS("platform:twl4030_pwrbutton"); |
120 | MODULE_DESCRIPTION("Triton2 Power Button"); | 131 | MODULE_DESCRIPTION("Triton2 Power Button"); |