platform/x86/amd/pmc: Fix build error with randconfig
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Sat, 26 Aug 2023 16:12:13 +0000 (21:42 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 28 Aug 2023 08:43:57 +0000 (10:43 +0200)
commit5ee473bbf43086f23eb2cd1b5a50498438e296a6
tree8549c1f5928c5824311df60a44af8482d71607ab
parent4dbd6e61adc7e52dd1c9165f0ccaa90806611e40
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 <rdunlap@infradead.org>
Closes: https://lore.kernel.org/lkml/5181685c-29d8-22a4-a2d7-682f26e2e031@infradead.org/
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230826161213.3180194-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc/Kconfig