Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322557
b: refs/heads/master
c: f35dd69
h: refs/heads/master
i:
  322555: 3226707
v: v3
  • Loading branch information
Michael Grzeschik authored and Dmitry Torokhov committed Aug 22, 2012
1 parent 4ec4ae2 commit 522f23d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1d0fa776870aeda5eb91b131d0f1aede6d94ef1
refs/heads/master: f35dd69ba341bda3790713b9e964483934b995e1
3 changes: 3 additions & 0 deletions trunk/drivers/input/keyboard/imx_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static void imx_keypad_inhibit(struct imx_keypad *keypad)
/* Inhibit KDI and KRI interrupts. */
reg_val = readw(keypad->mmio_base + KPSR);
reg_val &= ~(KBD_STAT_KRIE | KBD_STAT_KDIE);
reg_val |= KBD_STAT_KPKR | KBD_STAT_KPKD;
writew(reg_val, keypad->mmio_base + KPSR);

/* Colums as open drain and disable all rows */
Expand Down Expand Up @@ -515,7 +516,9 @@ static int __devinit imx_keypad_probe(struct platform_device *pdev)
input_set_drvdata(input_dev, keypad);

/* Ensure that the keypad will stay dormant until opened */
clk_enable(keypad->clk);
imx_keypad_inhibit(keypad);
clk_disable(keypad->clk);

error = request_irq(irq, imx_keypad_irq_handler, 0,
pdev->name, keypad);
Expand Down

0 comments on commit 522f23d

Please sign in to comment.