Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176426
b: refs/heads/master
c: 9d233e8
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov committed Dec 2, 2009
1 parent b4a9051 commit 32caab0
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0e19dbb73eab1f5de328e297b8b6d9887c3e73c2
refs/heads/master: 9d233e8bb92e355fd20b14745c1d9ff402e0e685
5 changes: 4 additions & 1 deletion trunk/drivers/power/power_supply_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ static ssize_t power_supply_show_property(struct device *dev,
ret = psy->get_property(psy, off, &value);

if (ret < 0) {
if (ret != -ENODEV)
if (ret == -ENODATA)
dev_dbg(dev, "driver has no data for `%s' property\n",
attr->attr.name);
else if (ret != -ENODEV)
dev_err(dev, "driver failed to report `%s' property\n",
attr->attr.name);
return ret;
Expand Down

0 comments on commit 32caab0

Please sign in to comment.