Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20210613233041.128961-4-alexander.sverdlin@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Alexander Sverdlin and committed by
Dmitry Torokhov
62e4fe9f a5b84e4e

+2 -2
+2 -2
drivers/input/keyboard/ep93xx_keypad.c
··· 157 157 158 158 if (!keypad->enabled) { 159 159 ep93xx_keypad_config(keypad); 160 - clk_enable(keypad->clk); 160 + clk_prepare_enable(keypad->clk); 161 161 keypad->enabled = true; 162 162 } 163 163 ··· 169 169 struct ep93xx_keypad *keypad = input_get_drvdata(pdev); 170 170 171 171 if (keypad->enabled) { 172 - clk_disable(keypad->clk); 172 + clk_disable_unprepare(keypad->clk); 173 173 keypad->enabled = false; 174 174 } 175 175 }