mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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:
parent
83c97fe13e
commit
19f053c840
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue