From: Shyam Sundar S K Date: Sat, 26 Aug 2023 16:12:13 +0000 (+0530) Subject: platform/x86/amd/pmc: Fix build error with randconfig X-Git-Tag: v6.6.7~2021^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ee473bbf43086f23eb2cd1b5a50498438e296a6;p=platform%2Fkernel%2Flinux-starfive.git platform/x86/amd/pmc: Fix build error with randconfig on x86_64: CONFIG_SUSPEND is not set CONFIG_PM is not set this leads to build failure of the AMD PMC driver. Add a 'depends on' in the Kconfig. Reported-by: Randy Dunlap Closes: https://lore.kernel.org/lkml/5181685c-29d8-22a4-a2d7-682f26e2e031@infradead.org/ Signed-off-by: Shyam Sundar S K Tested-by: Randy Dunlap Acked-by: Randy Dunlap Link: https://lore.kernel.org/r/20230826161213.3180194-1-Shyam-sundar.S-k@amd.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/amd/pmc/Kconfig b/drivers/platform/x86/amd/pmc/Kconfig index 8db9e82..883c0a9 100644 --- a/drivers/platform/x86/amd/pmc/Kconfig +++ b/drivers/platform/x86/amd/pmc/Kconfig @@ -6,6 +6,7 @@ config AMD_PMC tristate "AMD SoC PMC driver" depends on ACPI && PCI && RTC_CLASS && AMD_NB + depends on SUSPEND select SERIO help The driver provides support for AMD Power Management Controller