Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326180
b: refs/heads/master
c: bd8d8e0
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent 441d43e commit e680722
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: 79831fd4e0820bdc882d08707e4650ed4dfff3b8
refs/heads/master: bd8d8e088d4ec8738d47141c119013b5e63f591c
5 changes: 2 additions & 3 deletions trunk/drivers/hwmon/sch5627.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,6 @@ static int sch5627_remove(struct platform_device *pdev)
hwmon_device_unregister(data->hwmon_dev);

sysfs_remove_group(&pdev->dev.kobj, &sch5627_group);
platform_set_drvdata(pdev, NULL);
kfree(data);

return 0;
}
Expand All @@ -472,7 +470,8 @@ static int __devinit sch5627_probe(struct platform_device *pdev)
struct sch5627_data *data;
int err, build_code, build_id, hwmon_rev, val;

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

Expand Down

0 comments on commit e680722

Please sign in to comment.