mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
platform/x86/amd/hsmp: fix building with CONFIG_HWMON=m
When CONFIG_HWMON is built as a loadable module, the HSMP drivers
cannot be built-in:
ERROR: modpost: "hsmp_create_sensor" [drivers/platform/x86/amd/hsmp/amd_hsmp.ko] undefined!
ERROR: modpost: "hsmp_create_sensor" [drivers/platform/x86/amd/hsmp/hsmp_acpi.ko] undefined!
Enforce that through the usual Kconfig dependnecy trick.
Fixes: 92c025db52
("platform/x86/amd/hsmp: Report power via hwmon sensors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250522144422.2824083-1-arnd@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
7ff5f09140
commit
69157b00b5
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ menu "AMD HSMP Driver"
|
||||||
config AMD_HSMP_ACPI
|
config AMD_HSMP_ACPI
|
||||||
tristate "AMD HSMP ACPI device driver"
|
tristate "AMD HSMP ACPI device driver"
|
||||||
depends on ACPI
|
depends on ACPI
|
||||||
|
depends on HWMON || !HWMON
|
||||||
select AMD_HSMP
|
select AMD_HSMP
|
||||||
help
|
help
|
||||||
Host System Management Port (HSMP) interface is a mailbox interface
|
Host System Management Port (HSMP) interface is a mailbox interface
|
||||||
|
@ -29,6 +30,7 @@ config AMD_HSMP_ACPI
|
||||||
|
|
||||||
config AMD_HSMP_PLAT
|
config AMD_HSMP_PLAT
|
||||||
tristate "AMD HSMP platform device driver"
|
tristate "AMD HSMP platform device driver"
|
||||||
|
depends on HWMON || !HWMON
|
||||||
select AMD_HSMP
|
select AMD_HSMP
|
||||||
help
|
help
|
||||||
Host System Management Port (HSMP) interface is a mailbox interface
|
Host System Management Port (HSMP) interface is a mailbox interface
|
||||||
|
|
Loading…
Add table
Reference in a new issue