diff options
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/keyboard/imx_keypad.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/imx_keypad.c index 2e855e6f3565..d2ea863d6a45 100644 --- a/drivers/input/keyboard/imx_keypad.c +++ b/drivers/input/keyboard/imx_keypad.c | |||
| @@ -506,7 +506,9 @@ static int imx_keypad_probe(struct platform_device *pdev) | |||
| 506 | input_set_drvdata(input_dev, keypad); | 506 | input_set_drvdata(input_dev, keypad); |
| 507 | 507 | ||
| 508 | /* Ensure that the keypad will stay dormant until opened */ | 508 | /* Ensure that the keypad will stay dormant until opened */ |
| 509 | clk_prepare_enable(keypad->clk); | 509 | error = clk_prepare_enable(keypad->clk); |
| 510 | if (error) | ||
| 511 | return error; | ||
| 510 | imx_keypad_inhibit(keypad); | 512 | imx_keypad_inhibit(keypad); |
| 511 | clk_disable_unprepare(keypad->clk); | 513 | clk_disable_unprepare(keypad->clk); |
| 512 | 514 | ||
