]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm: boot: ep93xx: don't rely on machine_is_*() for removed board files
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 9 May 2026 22:38:19 +0000 (15:38 -0700)
committerAlexander Sverdlin <alexander.sverdlin@gmail.com>
Thu, 28 May 2026 22:21:38 +0000 (00:21 +0200)
commit7afbe21e94a439874f2df071265a8105efae1244
tree4d5fa68786277b0fa33bcb324220ba18ef79204d
parent254f49634ee16a731174d2ae34bc50bd5f45e731
arm: boot: ep93xx: don't rely on machine_is_*() for removed board files

Code in misc-ep93xx.h relies on machine_is_*() macros for several
boards that no longer have legacy board files. They were removed in
commit e5ef574dda70 ("ARM: ep93xx: delete all boardfiles"). This
prevents the removal of machine IDs no longer used by the kernel from
mach-types. To resolve this issue, create local copies of these macros.
(The checks themselves are still valid because the IDs are still passed
in by the bootloader on these machines.) Also take the opportunity to
remove three repeated checks for the same ID.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Alexander Sverdlin <asv@kernel.org>
arch/arm/boot/compressed/misc-ep93xx.h