linux/drivers/platform/x86/amd
Arnd Bergmann 24efcdf03d platform/x86/amd: pmc: remove CONFIG_SUSPEND checks
The amd_pmc_write_stb() function was previously hidden in an
ifdef to avoid a warning when CONFIG_SUSPEND is disabled, but
now there is an additional caller:

drivers/platform/x86/amd/pmc.c: In function 'amd_pmc_stb_debugfs_open_v2':
drivers/platform/x86/amd/pmc.c:256:8: error: implicit declaration of function 'amd_pmc_write_stb'; did you mean 'amd_pmc_read_stb'? [-Werror=implicit-function-declaration]
  256 |  ret = amd_pmc_write_stb(dev, AMD_PMC_STB_DUMMY_PC);
      |        ^~~~~~~~~~~~~~~~~
      |        amd_pmc_read_stb

There is now an easier way to handle this using DEFINE_SIMPLE_DEV_PM_OPS()
to replace all the #ifdefs, letting gcc drop any of the unused functions
silently.

Fixes: b0d4bb9735 ("platform/x86/amd: pmc: Write dummy postcode into the STB DRAM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230214152512.806188-1-arnd@kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2023-03-07 11:37:27 +01:00
..
pmf platform/x86/amd/pmf: Add depends on CONFIG_POWER_SUPPLY 2023-02-13 14:54:20 +01:00
hsmp.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
Kconfig platform/x86/amd: pmc: add CONFIG_SERIO dependency 2023-01-30 14:37:22 +01:00
Makefile platform/x86/amd/pmf: Add support for PMF core layer 2022-08-15 13:23:37 +02:00
pmc.c platform/x86/amd: pmc: remove CONFIG_SUSPEND checks 2023-03-07 11:37:27 +01:00