Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350663
b: refs/heads/master
c: 5d3caa4
h: refs/heads/master
i:
  350661: 80044c1
  350659: 55bc8b1
  350655: 2094e5c
v: v3
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Dec 24, 2012
1 parent a5830b7 commit 8486ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: e7cd0aeb323441228ebbffb0c5a78ea1132663fd
refs/heads/master: 5d3caa442e0858fa07b9a6a68d05e1ba2cf246a4
4 changes: 1 addition & 3 deletions trunk/drivers/input/misc/wm831x-on.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int wm831x_on_probe(struct platform_device *pdev)
wm831x_on->wm831x = wm831x;
INIT_DELAYED_WORK(&wm831x_on->work, wm831x_poll_on);

wm831x_on->dev = input_allocate_device();
wm831x_on->dev = devm_input_allocate_device(&pdev->dev);
if (!wm831x_on->dev) {
dev_err(&pdev->dev, "Can't allocate input dev\n");
ret = -ENOMEM;
Expand Down Expand Up @@ -119,7 +119,6 @@ static int wm831x_on_probe(struct platform_device *pdev)
err_irq:
free_irq(irq, wm831x_on);
err_input_dev:
input_free_device(wm831x_on->dev);
err:
return ret;
}
Expand All @@ -131,7 +130,6 @@ static int wm831x_on_remove(struct platform_device *pdev)

free_irq(irq, wm831x_on);
cancel_delayed_work_sync(&wm831x_on->work);
input_unregister_device(wm831x_on->dev);

return 0;
}
Expand Down

0 comments on commit 8486ab0

Please sign in to comment.