diff options
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r-- | drivers/acpi/ac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index ff9f6bd48301..ac7034129f3f 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
@@ -294,7 +294,9 @@ static int acpi_ac_add(struct acpi_device *device) | |||
294 | ac->charger.properties = ac_props; | 294 | ac->charger.properties = ac_props; |
295 | ac->charger.num_properties = ARRAY_SIZE(ac_props); | 295 | ac->charger.num_properties = ARRAY_SIZE(ac_props); |
296 | ac->charger.get_property = get_ac_property; | 296 | ac->charger.get_property = get_ac_property; |
297 | power_supply_register(&ac->device->dev, &ac->charger); | 297 | result = power_supply_register(&ac->device->dev, &ac->charger); |
298 | if (result) | ||
299 | goto end; | ||
298 | 300 | ||
299 | printk(KERN_INFO PREFIX "%s [%s] (%s)\n", | 301 | printk(KERN_INFO PREFIX "%s [%s] (%s)\n", |
300 | acpi_device_name(device), acpi_device_bid(device), | 302 | acpi_device_name(device), acpi_device_bid(device), |