aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/power_supply_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r--drivers/power/power_supply_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index cd1f90754a3..605514afc29 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -270,7 +270,7 @@ int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env)
270 attr = &power_supply_attrs[psy->properties[j]]; 270 attr = &power_supply_attrs[psy->properties[j]];
271 271
272 ret = power_supply_show_property(dev, attr, prop_buf); 272 ret = power_supply_show_property(dev, attr, prop_buf);
273 if (ret == -ENODEV) { 273 if (ret == -ENODEV || ret == -ENODATA) {
274 /* When a battery is absent, we expect -ENODEV. Don't abort; 274 /* When a battery is absent, we expect -ENODEV. Don't abort;
275 send the uevent with at least the the PRESENT=0 property */ 275 send the uevent with at least the the PRESENT=0 property */
276 ret = 0; 276 ret = 0;