Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298561
b: refs/heads/master
c: 31e354e
h: refs/heads/master
i:
  298559: da32603
v: v3
  • Loading branch information
Kyle McMartin authored and Guenter Roeck committed Apr 1, 2012
1 parent a2d7d86 commit 375cefb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce15a81da33b961852f6e6a55305ccc60856de25
refs/heads/master: 31e354ee653c3d85e802a372f27224130fc95011
2 changes: 2 additions & 0 deletions trunk/drivers/hwmon/acpi_power_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ static int register_ro_attrs(struct acpi_power_meter_resource *resource,
sensors->dev_attr.show = ro->show;
sensors->index = ro->index;

sysfs_attr_init(&sensors->dev_attr.attr);
res = device_create_file(dev, &sensors->dev_attr);
if (res) {
sensors->dev_attr.attr.name = NULL;
Expand Down Expand Up @@ -661,6 +662,7 @@ static int register_rw_attrs(struct acpi_power_meter_resource *resource,
sensors->dev_attr.store = rw->set;
sensors->index = rw->index;

sysfs_attr_init(&sensors->dev_attr.attr);
res = device_create_file(dev, &sensors->dev_attr);
if (res) {
sensors->dev_attr.attr.name = NULL;
Expand Down

0 comments on commit 375cefb

Please sign in to comment.