diff options
| -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 6512b20aeccd..d1fcbc0f6cbc 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
| @@ -292,7 +292,9 @@ static int acpi_ac_add(struct acpi_device *device) | |||
| 292 | ac->charger.properties = ac_props; | 292 | ac->charger.properties = ac_props; |
| 293 | ac->charger.num_properties = ARRAY_SIZE(ac_props); | 293 | ac->charger.num_properties = ARRAY_SIZE(ac_props); |
| 294 | ac->charger.get_property = get_ac_property; | 294 | ac->charger.get_property = get_ac_property; |
| 295 | power_supply_register(&ac->device->dev, &ac->charger); | 295 | result = power_supply_register(&ac->device->dev, &ac->charger); |
| 296 | if (result) | ||
| 297 | goto end; | ||
| 296 | 298 | ||
| 297 | printk(KERN_INFO PREFIX "%s [%s] (%s)\n", | 299 | printk(KERN_INFO PREFIX "%s [%s] (%s)\n", |
| 298 | acpi_device_name(device), acpi_device_bid(device), | 300 | acpi_device_name(device), acpi_device_bid(device), |
