Alex Gershgorin | 28 May 14:13 2012

[PATCH] ARM: i.MX: Keypad prepare/unprepare clock

Signed-off-by: Alex Gershgorin <alexg <at> meprolight.com>
---
 drivers/input/keyboard/imx_keypad.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/imx_keypad.c
index 6ee7421..9d57945 100644
--- a/drivers/input/keyboard/imx_keypad.c
+++ b/drivers/input/keyboard/imx_keypad.c
 <at>  <at>  -378,7 +378,7  <at>  <at>  static void imx_keypad_close(struct input_dev *dev)
 	imx_keypad_inhibit(keypad);

 	/* Disable clock unit */
-	clk_disable(keypad->clk);
+	clk_disable_unprepare(keypad->clk);
 }

 static int imx_keypad_open(struct input_dev *dev)
 <at>  <at>  -391,7 +391,7  <at>  <at>  static int imx_keypad_open(struct input_dev *dev)
 	keypad->enabled = true;

 	/* Enable the kpp clock */
-	clk_enable(keypad->clk);
+	clk_prepare_enable(keypad->clk);
 	imx_keypad_config(keypad);

 	/* Sanity control, not all the rows must be actived now. */
 <at>  <at>  -581,7 +581,7  <at>  <at>  static int imx_kbd_suspend(struct device *dev)
 	mutex_lock(&input_dev->mutex);

(Continue reading)

Fabio Estevam | 28 May 14:51 2012
Picon

Re: [PATCH] ARM: i.MX: Keypad prepare/unprepare clock

Hi Alex,

On 5/28/12, Alex Gershgorin <alexg <at> meprolight.com> wrote:
> Signed-off-by: Alex Gershgorin <alexg <at> meprolight.com>
> ---
>  drivers/input/keyboard/imx_keypad.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)

I have already submitted this change:
http://www.spinics.net/lists/linux-input/msg21011.html

Regards,

Fabio Estevam
Alex Gershgorin | 28 May 14:53 2012

RE: [PATCH] ARM: i.MX: Keypad prepare/unprepare clock


Hi Fabio,

> I have already submitted this change:
> http://www.spinics.net/lists/linux-input/msg21011.html

Well I'm sorry my mistake  

Regards,
Alex

Gmane