Skip to content

Commit 62e4fe9

Browse files
sverdlindtor
authored andcommitted
Input: ep93xx_keypad - prepare clock before using it
Use clk_prepare_enable()/clk_disable_unprepare() in preparation for switch to Common Clock Framework. Signed-off-by: Alexander Sverdlin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent a5b84e4 commit 62e4fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/keyboard/ep93xx_keypad.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static int ep93xx_keypad_open(struct input_dev *pdev)
157157

158158
if (!keypad->enabled) {
159159
ep93xx_keypad_config(keypad);
160-
clk_enable(keypad->clk);
160+
clk_prepare_enable(keypad->clk);
161161
keypad->enabled = true;
162162
}
163163

@@ -169,7 +169,7 @@ static void ep93xx_keypad_close(struct input_dev *pdev)
169169
struct ep93xx_keypad *keypad = input_get_drvdata(pdev);
170170

171171
if (keypad->enabled) {
172-
clk_disable(keypad->clk);
172+
clk_disable_unprepare(keypad->clk);
173173
keypad->enabled = false;
174174
}
175175
}

0 commit comments

Comments
 (0)