[PATCH] mfd: twl4030-power: drop dead machine_is_*() macros

Sascha Hauer <[email protected]>
Newsgroups org.kernel.vger.linux-omap,org.kernel.vger.linux-kernel
Message-ID <20260603-mfd-remove-mach-types-h-v1-1-751e119167da@pengutronix.de>
OMAP LDP and 3430SDP are converted to dt in [1] and [2], the
corresponding machine_is_*() macros always expand to 0. Drop them and
with it the now unnecessary inclusion of mach-types.h.

[1] e92fc4f04a34a ("ARM: OMAP2+: Drop legacy board file for LDP")
[2] 1b383f44aabc8 ("ARM: OMAP2+: Drop board file for 3430sdp")

Signed-off-by: Sascha Hauer <[email protected]>
---
 drivers/mfd/twl4030-power.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index 0bca948ab6bae..b6251a2a3078c 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -30,8 +30,6 @@
 #include <linux/property.h>
 #include <linux/of.h>
 
-#include <asm/mach-types.h>
-
 static u8 twl4030_start_script_address = 0x2b;
 
 /* Register bits for P1, P2 and P3_SW_EVENTS */
@@ -294,8 +292,7 @@ twl4030_config_wakeup12_sequence(const struct twl4030_power_data *pdata,
 	if (err)
 		goto out;
 
-	if (pdata->ac_charger_quirk || machine_is_omap_3430sdp() ||
-	    machine_is_omap_ldp()) {
+	if (pdata->ac_charger_quirk) {
 		/* Disabling AC charger effect on sleep-active transitions */
 		err = twl_i2c_read_u8(TWL_MODULE_PM_MASTER, &data,
 				      R_CFG_P1_TRANSITION);

---
base-commit: ba3e43a9e601636f5edb54e259a74f96ca3b8fd8
change-id: 20260603-mfd-remove-mach-types-h-bab96314bd7d

Best regards,
-- 
Sascha Hauer <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.