diff options
Diffstat (limited to 'drivers/input/misc/e3x0-button.c')
-rw-r--r-- | drivers/input/misc/e3x0-button.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/input/misc/e3x0-button.c b/drivers/input/misc/e3x0-button.c index 13bfca8a7b16..e956cf1d273f 100644 --- a/drivers/input/misc/e3x0-button.c +++ b/drivers/input/misc/e3x0-button.c | |||
@@ -120,17 +120,10 @@ static int e3x0_button_probe(struct platform_device *pdev) | |||
120 | return error; | 120 | return error; |
121 | } | 121 | } |
122 | 122 | ||
123 | platform_set_drvdata(pdev, input); | ||
124 | device_init_wakeup(&pdev->dev, 1); | 123 | device_init_wakeup(&pdev->dev, 1); |
125 | return 0; | 124 | return 0; |
126 | } | 125 | } |
127 | 126 | ||
128 | static int e3x0_button_remove(struct platform_device *pdev) | ||
129 | { | ||
130 | device_init_wakeup(&pdev->dev, 0); | ||
131 | return 0; | ||
132 | } | ||
133 | |||
134 | #ifdef CONFIG_OF | 127 | #ifdef CONFIG_OF |
135 | static const struct of_device_id e3x0_button_match[] = { | 128 | static const struct of_device_id e3x0_button_match[] = { |
136 | { .compatible = "ettus,e3x0-button", }, | 129 | { .compatible = "ettus,e3x0-button", }, |
@@ -146,7 +139,6 @@ static struct platform_driver e3x0_button_driver = { | |||
146 | .pm = &e3x0_button_pm_ops, | 139 | .pm = &e3x0_button_pm_ops, |
147 | }, | 140 | }, |
148 | .probe = e3x0_button_probe, | 141 | .probe = e3x0_button_probe, |
149 | .remove = e3x0_button_remove, | ||
150 | }; | 142 | }; |
151 | 143 | ||
152 | module_platform_driver(e3x0_button_driver); | 144 | module_platform_driver(e3x0_button_driver); |