Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305857
b: refs/heads/master
c: 7bb5ee0
h: refs/heads/master
i:
  305855: 9128122
v: v3
  • Loading branch information
Kyle McMartin authored and Guenter Roeck committed May 21, 2012
1 parent 0676b1a commit 28b9d92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 9fe789f88ae5488d8b8af1c4c962e619ed05bb2e
refs/heads/master: 7bb5ee0169b80d40aa7d4854c07f1c2a90efc5b8
15 changes: 7 additions & 8 deletions trunk/drivers/hwmon/acpi_power_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,21 +697,20 @@ static int setup_attrs(struct acpi_power_meter_resource *resource)
goto skip_unsafe_cap;
}

if (resource->caps.configurable_cap) {
if (resource->caps.configurable_cap)
res = register_attrs(resource, rw_cap_attrs);
if (res)
goto error;
} else {
else
res = register_attrs(resource, ro_cap_attrs);
if (res)
goto error;
}

if (res)
goto error;

res = register_attrs(resource, misc_cap_attrs);
if (res)
goto error;
}
skip_unsafe_cap:

skip_unsafe_cap:
if (resource->caps.flags & POWER_METER_CAN_TRIP) {
res = register_attrs(resource, trip_attrs);
if (res)
Expand Down

0 comments on commit 28b9d92

Please sign in to comment.