]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mfd: twl4030-power: Update checks for specific boards to use the DT
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sun, 17 May 2026 02:37:21 +0000 (19:37 -0700)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:32:51 +0000 (11:32 +0100)
commit7aa3d8aba56ef337a2450385a29e074848ab0fa0
treeefc49a03e9054b9a0cd8c497bbc582d9386c9288
parent45a1d5f19684ab928b8375c30895b4cc8de937d3
mfd: twl4030-power: Update checks for specific boards to use the DT

The twl4030-power driver contains two checks for ARM machine IDs via
machine_is_*() macros. The two boards concerned now support only FDT
booting, which does not use machine IDs, and therefore the code should
be updated to check the DT compatible property instead.
The legacy board files for these machines were removed in
commit 1b383f44aabc ("ARM: OMAP2+: Drop board file for 3430sdp") and
commit e92fc4f04a34 ("ARM: OMAP2+: Drop legacy board file for LDP").
The presence of these machine ID checks prevents the removal of machine
IDs no longer used by the kernel from arch/arm/tools/mach-types,
because the machine_is_*() macros are generated from mach-types. To
resolve this issue, use of_machine_is_compatible() instead.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260517023723.92731-2-enelsonmoore@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/twl4030-power.c