]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Fix compilation when CONFIG_DEBUGFS is disabled
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Sep 2021 14:16:06 +0000 (16:16 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 28 Sep 2021 14:22:53 +0000 (16:22 +0200)
commitd83b4ba4915ce9d81ab61d4b48860e2a94237a60
tree04939baf5ce155b5118c2159ec4ecfda30c6b8df
parent7978b138392d4710a5951808356a62a27d071be7
platform/x86: amd-pmc: Fix compilation when CONFIG_DEBUGFS is disabled

The amd_pmc_get_smu_version() and amd_pmc_idlemask_read() functions are
used in the probe / suspend/resume code, so they are also used when
CONFIG_DEBUGFS is disabled, move them outside of the #ifdef CONFIG_DEBUGFS
block.

Note this purely moves the code to above the #ifdef CONFIG_DEBUGFS,
the code is completely unchanged.

Fixes: dced181c97ed ("platform/x86: amd-pmc: Export Idlemask values based on the APU")
Cc: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Cc: Sanket Goswami <Sanket.Goswami@amd.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c