Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3004e8d

Browse files
Shyam Sundar S Kjwrdegoede
authored andcommitted
platform/x86/amd/pmf: Add depends on CONFIG_POWER_SUPPLY
It is reported that amd_pmf driver is missing "depends on" for CONFIG_POWER_SUPPLY causing the following build error. ld: drivers/platform/x86/amd/pmf/core.o: in function `amd_pmf_remove': core.c:(.text+0x10): undefined reference to `power_supply_unreg_notifier' ld: drivers/platform/x86/amd/pmf/core.o: in function `amd_pmf_probe': core.c:(.text+0x38f): undefined reference to `power_supply_reg_notifier' make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1 make: *** [Makefile:1248: vmlinux] Error 2 Add this to the Kconfig file. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217028 Fixes: c5258d3 ("platform/x86/amd/pmf: Add helper routine to update SPS thermals") Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://lore.kernel.org/r/20230213121457.1764463-1-Shyam-sundar.S-k@amd.com Cc: stable@vger.kernel.org Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 6113bd5 commit 3004e8d

File tree

1 file changed

+1
-0
lines changed
  • drivers/platform/x86/amd/pmf

1 file changed

+1
-0
lines changed

drivers/platform/x86/amd/pmf/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
config AMD_PMF
77
tristate "AMD Platform Management Framework"
88
depends on ACPI && PCI
9+
depends on POWER_SUPPLY
910
select ACPI_PLATFORM_PROFILE
1011
help
1112
This driver provides support for the AMD Platform Management Framework.

0 commit comments

Comments
 (0)