aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/omap4-keypad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/omap4-keypad.c')
-rw-r--r--drivers/input/keyboard/omap4-keypad.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c
index 6639b2b8528a..ebc67ba41fe2 100644
--- a/drivers/input/keyboard/omap4-keypad.c
+++ b/drivers/input/keyboard/omap4-keypad.c
@@ -223,8 +223,8 @@ static int omap4_keypad_parse_dt(struct device *dev,
223 struct device_node *np = dev->of_node; 223 struct device_node *np = dev->of_node;
224 int err; 224 int err;
225 225
226 err = matrix_keypad_parse_of_params(dev, &keypad_data->rows, 226 err = matrix_keypad_parse_properties(dev, &keypad_data->rows,
227 &keypad_data->cols); 227 &keypad_data->cols);
228 if (err) 228 if (err)
229 return err; 229 return err;
230 230
@@ -375,7 +375,6 @@ static int omap4_keypad_probe(struct platform_device *pdev)
375 375
376err_pm_disable: 376err_pm_disable:
377 pm_runtime_disable(&pdev->dev); 377 pm_runtime_disable(&pdev->dev);
378 device_init_wakeup(&pdev->dev, false);
379 free_irq(keypad_data->irq, keypad_data); 378 free_irq(keypad_data->irq, keypad_data);
380err_free_keymap: 379err_free_keymap:
381 kfree(keypad_data->keymap); 380 kfree(keypad_data->keymap);
@@ -401,8 +400,6 @@ static int omap4_keypad_remove(struct platform_device *pdev)
401 400
402 pm_runtime_disable(&pdev->dev); 401 pm_runtime_disable(&pdev->dev);
403 402
404 device_init_wakeup(&pdev->dev, false);
405
406 input_unregister_device(keypad_data->input); 403 input_unregister_device(keypad_data->input);
407 404
408 iounmap(keypad_data->base); 405 iounmap(keypad_data->base);