Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36717
b: refs/heads/master
c: b25a106
h: refs/heads/master
i:
  36715: 328e164
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Sep 28, 2006
1 parent 34dd838 commit bc40c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: c41bdb526bca5cda5be3de8c112f63c400bf990f
refs/heads/master: b25a10631a81fca33a94d1f1f6960928d8e9ce63
6 changes: 5 additions & 1 deletion trunk/drivers/hwmon/hdaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ static int __init hdaps_init(void)
input_set_abs_params(hdaps_idev, ABS_Y,
-256, 256, HDAPS_INPUT_FUZZ, HDAPS_INPUT_FLAT);

input_register_device(hdaps_idev);
ret = input_register_device(hdaps_idev);
if (ret)
goto out_idev;

/* start up our timer for the input device */
init_timer(&hdaps_timer);
Expand All @@ -598,6 +600,8 @@ static int __init hdaps_init(void)
printk(KERN_INFO "hdaps: driver successfully loaded.\n");
return 0;

out_idev:
input_free_device(hdaps_idev);
out_group:
sysfs_remove_group(&pdev->dev.kobj, &hdaps_attribute_group);
out_device:
Expand Down

0 comments on commit bc40c3e

Please sign in to comment.