From: Guenter Roeck Date: Fri, 13 Sep 2013 17:56:11 +0000 (-0700) Subject: hwmon: (acpi_power_meter) Use return value from acpi_bus_register_driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=19f053c8406542eafb534b33d698677f076a3421;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 51b045b20c1a..8d40da314a8e 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; }