]> www.infradead.org Git - users/hch/misc.git/commit
hwmon: (acpi_power_meter) Fix fail to load module on platform without _PMD method
authorHuisong Li <lihuisong@huawei.com>
Tue, 12 Nov 2024 02:12:28 +0000 (10:12 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Nov 2024 21:54:55 +0000 (13:54 -0800)
commitfabb1f813ec05975fd3428e72a62ef9f855fd3b4
treef560c2c98c88e81f6f3e509fcc7fe1b8b15e72cc
parent57ee12b6c514146c19b6a159013b48727a012960
hwmon: (acpi_power_meter) Fix fail to load module on platform without _PMD method

According to the ACPI specification, the _PMD method is optional. The
acpi_power_meter driver shouldn't fail to load if the platform has no
_PMD method.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Message-ID: <20241112021228.22914-1-lihuisong@huawei.com>
[groeck: Reworded commit description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/acpi_power_meter.c