]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: ti: omap3pandora: update board check to use DT compatible
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sun, 10 May 2026 05:39:37 +0000 (22:39 -0700)
committerMark Brown <broonie@kernel.org>
Sun, 10 May 2026 13:45:39 +0000 (22:45 +0900)
commit45efb8fbdae303539e7fb5562e147583d4ed63ad
treeb2e97281a3157382d5bca86fdd9346b97ff8bdc5
parent04b8f96b10881006e8aadbf72c59427ec5eaa9b4
ASoC: ti: omap3pandora: update board check to use DT compatible

The omap3pandora driver contains a check for the ARM machine ID via the
machine_is_omap3_pandora() macro. The board concerned now supports
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 file for this machine was removed in commit 7fcf7e061edd
("ARM: OMAP2+: Remove legacy booting support for Pandora").
The presence of this machine ID check 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>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap3pandora.c