|
@@ -506,7 +506,9 @@ static int imx_keypad_probe(struct platform_device *pdev)
|
|
|
input_set_drvdata(input_dev, keypad);
|
|
input_set_drvdata(input_dev, keypad);
|
|
|
|
|
|
|
|
/* Ensure that the keypad will stay dormant until opened */
|
|
/* Ensure that the keypad will stay dormant until opened */
|
|
|
- clk_prepare_enable(keypad->clk);
|
|
|
|
|
|
|
+ error = clk_prepare_enable(keypad->clk);
|
|
|
|
|
+ if (error)
|
|
|
|
|
+ return error;
|
|
|
imx_keypad_inhibit(keypad);
|
|
imx_keypad_inhibit(keypad);
|
|
|
clk_disable_unprepare(keypad->clk);
|
|
clk_disable_unprepare(keypad->clk);
|
|
|
|
|
|