Commit 19f053c8 authored by Guenter Roeck's avatar Guenter Roeck

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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 83c97fe1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment