diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-09-13 10:56:11 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-10-13 16:16:26 -0700 |
commit | 19f053c8406542eafb534b33d698677f076a3421 (patch) | |
tree | be446e4e3f228944132bf8655ea620092b0b6d33 | |
parent | 83c97fe13e026a7795a07bfca76fe5d4b5cc5157 (diff) |
hwmon: (acpi_power_meter) Use return value from acpi_bus_register_driver
acpi_bus_register_driver() returns a valid error code. Use it.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/acpi_power_meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 51b045b20c1..8d40da314a8 100644 --- a/drivers/hwmon/acpi_power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c @@ -996,7 +996,7 @@ static int __init acpi_power_meter_init(void) result = acpi_bus_register_driver(&acpi_power_meter_driver); if (result < 0) - return -ENODEV; + return result; return 0; } |