Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346933
b: refs/heads/master
c: 4e99aab
h: refs/heads/master
i:
  346931: 6c6aff8
v: v3
  • Loading branch information
Ulf Hansson authored and Dmitry Torokhov committed Nov 8, 2012
1 parent 707f407 commit 43b2184
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 6afdc289c984451a6202a687fe6af727e051a784
refs/heads/master: 4e99aab78ab2adf7645b7f58b2b549e6ea205dd7
14 changes: 10 additions & 4 deletions trunk/drivers/input/keyboard/nomadik-ske-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,19 @@ static int __init ske_keypad_probe(struct platform_device *pdev)
keypad->keymap, input);
if (error) {
dev_err(&pdev->dev, "Failed to build keymap\n");
goto err_iounmap;
goto err_clk;
}

input_set_capability(input, EV_MSC, MSC_SCAN);
if (!plat->no_autorepeat)
__set_bit(EV_REP, input->evbit);

clk_enable(keypad->clk);
error = clk_prepare_enable(keypad->clk);
if (error) {
dev_err(&pdev->dev, "Failed to prepare/enable clk\n");
goto err_clk;
}


/* go through board initialization helpers */
if (keypad->board->init)
Expand Down Expand Up @@ -330,7 +335,8 @@ static int __init ske_keypad_probe(struct platform_device *pdev)
err_free_irq:
free_irq(keypad->irq, keypad);
err_clk_disable:
clk_disable(keypad->clk);
clk_disable_unprepare(keypad->clk);
err_clk:
clk_put(keypad->clk);
err_iounmap:
iounmap(keypad->reg_base);
Expand All @@ -351,7 +357,7 @@ static int __devexit ske_keypad_remove(struct platform_device *pdev)

input_unregister_device(keypad->input);

clk_disable(keypad->clk);
clk_disable_unprepare(keypad->clk);
clk_put(keypad->clk);

if (keypad->board->exit)
Expand Down

0 comments on commit 43b2184

Please sign in to comment.