]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: amd: Fix use of undeclared identifier 'pinctrl_amd_s2idle_dev_ops'
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 14 Apr 2025 20:35:51 +0000 (15:35 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 May 2025 13:54:05 +0000 (15:54 +0200)
commitb841c1d84ad7d4da55d8861ad0e63cec26ddd97d
tree64a8187fe2d3523bcd6369cc4a9b14040cf4af59
parent179db1909c5c4b5300cce626507b0f843f7d2cc2
pinctrl: amd: Fix use of undeclared identifier 'pinctrl_amd_s2idle_dev_ops'

`pinctrl_amd_s2idle_dev_ops` is hidden under both `CONFIG_ACPI` and
`CONFIG_PM_SLEEP` so the functions that use it need the same scope.

Adjust checks to look for both, and while updating make it CONFIG_SUSPEND
instead as that's what the ACPI header uses.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504100420.88UPkUTU-lkp@intel.com/
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20250414203551.779320-1-superm1@kernel.org
[ rjw: Add missing #ifdef/#endif block ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pinctrl/pinctrl-amd.c