Commit 8d6bf2e
hwmon: (acpi_power_meter) Fix a check for the return value of read_domain_devices().
After commit fabb1f8 ("hwmon: (acpi_power_meter) Fix fail to load
module on platform without _PMD method"),
the acpi_power_meter driver fails to load if the platform has _PMD method.
To address this, add a check for successful read_domain_devices().
Tested on Nvidia Grace machine.
Fixes: fabb1f8 ("hwmon: (acpi_power_meter) Fix fail to load module on platform without _PMD method")
Signed-off-by: Kazuhiro Abe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Dropped unnecessary () from expression]
Signed-off-by: Guenter Roeck <[email protected]>1 parent e2c68ce commit 8d6bf2e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| |||
0 commit comments