Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346960
b: refs/heads/master
c: 9336648
h: refs/heads/master
v: v3
  • Loading branch information
Vipul Kumar Samar authored and Dmitry Torokhov committed Nov 28, 2012
1 parent da81719 commit 7ef14fa
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 92aab96034c2cdf11eb61a6b14409c2da8e5158d
refs/heads/master: 9336648978c2e9de9bf3c026918db386ace19a86
10 changes: 10 additions & 0 deletions trunk/drivers/input/keyboard/spear-keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,14 @@ static int spear_kbd_probe(struct platform_device *pdev)
return error;
}

error = clk_prepare(kbd->clk);
if (error)
return error;

error = input_register_device(input_dev);
if (error) {
dev_err(&pdev->dev, "Unable to register keyboard device\n");
clk_unprepare(kbd->clk);
return error;
}

Expand All @@ -281,6 +286,11 @@ static int spear_kbd_probe(struct platform_device *pdev)

static int spear_kbd_remove(struct platform_device *pdev)
{
struct spear_kbd *kbd = platform_get_drvdata(pdev);

input_unregister_device(kbd->input);
clk_unprepare(kbd->clk);

device_init_wakeup(&pdev->dev, 0);
platform_set_drvdata(pdev, NULL);

Expand Down

0 comments on commit 7ef14fa

Please sign in to comment.