Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318284
b: refs/heads/master
c: a1e636e
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Dmitry Torokhov committed Jul 7, 2012
1 parent 581eab7 commit e4460a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6680884a44207efe8ef6bc56b1c932cce2b89994
refs/heads/master: a1e636e6d35944a2b970481b78a621774276acfd
8 changes: 4 additions & 4 deletions trunk/drivers/input/keyboard/imx_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ 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)
Expand All @@ -391,7 +391,7 @@ 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. */
Expand Down Expand Up @@ -581,7 +581,7 @@ static int imx_kbd_suspend(struct device *dev)
mutex_lock(&input_dev->mutex);

if (input_dev->users)
clk_disable(kbd->clk);
clk_disable_unprepare(kbd->clk);

mutex_unlock(&input_dev->mutex);

Expand All @@ -603,7 +603,7 @@ static int imx_kbd_resume(struct device *dev)
mutex_lock(&input_dev->mutex);

if (input_dev->users)
clk_enable(kbd->clk);
clk_prepare_enable(kbd->clk);

mutex_unlock(&input_dev->mutex);

Expand Down

0 comments on commit e4460a1

Please sign in to comment.