Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326151
b: refs/heads/master
c: a34c26d
h: refs/heads/master
i:
  326149: 66fefe2
  326147: 8792d8c
  326143: 789f872
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent e273114 commit 2e852c3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d8f30ad8e556cad5ee23fdb63845914aec4a8172
refs/heads/master: a34c26d8e288d48e70c0e722da0c745e14d74e3a
6 changes: 2 additions & 4 deletions trunk/drivers/hwmon/abituguru3.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,8 @@ static int __devinit abituguru3_probe(struct platform_device *pdev)
u8 buf[2];
u16 id;

data = kzalloc(sizeof(struct abituguru3_data), GFP_KERNEL);
data = devm_kzalloc(&pdev->dev, sizeof(struct abituguru3_data),
GFP_KERNEL);
if (!data)
return -ENOMEM;

Expand Down Expand Up @@ -1068,7 +1069,6 @@ static int __devinit abituguru3_probe(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(abituguru3_sysfs_attr); i++)
device_remove_file(&pdev->dev,
&abituguru3_sysfs_attr[i].dev_attr);
kfree(data);
return res;
}

Expand All @@ -1084,8 +1084,6 @@ static int __devexit abituguru3_remove(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(abituguru3_sysfs_attr); i++)
device_remove_file(&pdev->dev,
&abituguru3_sysfs_attr[i].dev_attr);
kfree(data);

return 0;
}

Expand Down

0 comments on commit 2e852c3

Please sign in to comment.