Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346913
b: refs/heads/master
c: ef8dee5
h: refs/heads/master
i:
  346911: 830aa00
v: v3
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Oct 11, 2012
1 parent ac10c02 commit 424038f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2f7badb9742f88e7307d9e823f40c8621ceaa1c4
refs/heads/master: ef8dee5cfe4df1091419e7d58b902e7e3d90b00e
5 changes: 2 additions & 3 deletions trunk/drivers/input/touchscreen/wm831x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ static __devinit int wm831x_ts_probe(struct platform_device *pdev)
if (core_pdata)
pdata = core_pdata->touch;

wm831x_ts = kzalloc(sizeof(struct wm831x_ts), GFP_KERNEL);
wm831x_ts = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ts),
GFP_KERNEL);
input_dev = input_allocate_device();
if (!wm831x_ts || !input_dev) {
error = -ENOMEM;
Expand Down Expand Up @@ -376,7 +377,6 @@ static __devinit int wm831x_ts_probe(struct platform_device *pdev)
free_irq(wm831x_ts->data_irq, wm831x_ts);
err_alloc:
input_free_device(input_dev);
kfree(wm831x_ts);

return error;
}
Expand All @@ -388,7 +388,6 @@ static __devexit int wm831x_ts_remove(struct platform_device *pdev)
free_irq(wm831x_ts->pd_irq, wm831x_ts);
free_irq(wm831x_ts->data_irq, wm831x_ts);
input_unregister_device(wm831x_ts->input_dev);
kfree(wm831x_ts);

return 0;
}
Expand Down

0 comments on commit 424038f

Please sign in to comment.