diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2022-04-02 18:11:22 -0500 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-04-04 16:26:09 +0200 |
commit | 753ee989f7cf0c0a76a7f56956827a8863a60f97 (patch) | |
tree | 337cd389dd808b0f51a4fcc163d1641383d47d14 /Makefile | |
parent | 487532ec20c1a0b9fc85c1265fa81f04a151f007 (diff) | |
download | linux-753ee989f7cf0c0a76a7f56956827a8863a60f97.tar.bz2 |
platform/x86: amd-pmc: Fix compilation without CONFIG_SUSPEND
Since commit b1f66033cd4e ("platform/x86: amd-pmc: Move to later in the
suspend process") amd-pmc doesn't use traditional suspend resume
callback anymore but relies on functions only created declared when
CONFIG_SUSPEND is set.
Check for CONFIG_SUSPEND and only use those functions in those
circumstances.
Fixes: commit b1f66033cd4e ("platform/x86: amd-pmc: Move to later in the suspend process")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20220402231122.3877-1-mario.limonciello@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions