1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/amd/pmf
Shyam Sundar S K 3004e8d2a0 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: c5258d39fc ("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>
2023-02-13 14:54:20 +01:00
..
acpi.c Merge branch 'platform-drivers-x86-amd-pmf' into review-hans 2022-09-27 14:57:38 +02:00
auto-mode.c platform/x86/amd/pmf: update to auto-mode limits only after AMT event 2023-01-30 14:30:57 +01:00
cnqf.c platform/x86/amd/pmf: Add helper routine to check pprof is balanced 2023-01-30 14:30:57 +01:00
core.c platform/x86/amd/pmf: Ensure mutexes are initialized before use 2023-01-30 14:30:57 +01:00
Kconfig platform/x86/amd/pmf: Add depends on CONFIG_POWER_SUPPLY 2023-02-13 14:54:20 +01:00
Makefile platform/x86/amd/pmf: Add support for CnQF 2022-09-22 17:42:53 +02:00
pmf.h platform/x86/amd/pmf: Fix to update SPS thermals when power supply change 2023-01-30 14:30:57 +01:00
sps.c platform/x86/amd/pmf: Fix to update SPS default pprof thermals 2023-01-30 14:30:57 +01:00