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>
This commit is contained in:
Guenter Roeck 2013-09-13 10:56:11 -07:00
parent 83c97fe13e
commit 19f053c840
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}