mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pinctrl: amd: Drop CONFIG_ACPI ifdef
@ 2026-11-05 18:03 Mario Limonciello
  2026-11-06 13:32 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Limonciello @ 2026-11-05 18:03 UTC (permalink / raw)
  To: Basavaraj Natikar, Shyam Sundar S K, Linus Walleij
  Cc: linux-gpio, linux-kernel, linux-acpi, Mario Limonciello

commit e7280ab196ba4 ("ACPI: bus: Use acpi/acpi_bus.h without
CONFIG_ACPI") added a stub that means that we don't need a #ifdef
anymore for the _AEI check

Signed-off-by: Mario Limonciello <superm1@kernel.org>
---
 drivers/pinctrl/pinctrl-amd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 9fa752f552d43..efe8859fcd5a9 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -955,14 +955,12 @@ static void amd_gpio_irq_init(struct amd_gpio *gpio_dev)
 
 	mask = BIT(WAKE_CNTRL_OFF_S0I3) | BIT(WAKE_CNTRL_OFF_S3);
 
-#ifdef CONFIG_ACPI
 	/*
 	 * Platforms without _AEI leave GPIO wake sources to firmware, so
 	 * preserve their S4 wake bits.
 	 */
 	if (acpi_has_method(ACPI_HANDLE(&gpio_dev->pdev->dev), "_AEI"))
 		mask |= BIT(WAKE_CNTRL_OFF_S4);
-#endif
 
 	for (i = 0; i < desc->npins; i++) {
 		int pin = desc->pins[i].number;

---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261101-superm1-pinctrl-acpi-faeed4581e60

Best regards,
--  
Mario Limonciello <superm1@kernel.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-06 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 18:03 [PATCH] pinctrl: amd: Drop CONFIG_ACPI ifdef Mario Limonciello
2026-11-06 13:32 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®