2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/powerpc/platforms/512x
Christophe Leroy 28da734d58 powerpc/machdep: Define 'compatibles' property in ppc_md and use it
Most probe functions that do not use the 'compatible' string do
nothing else than checking whether the machine is compatible with
one of the strings in a NULL terminated table of strings.

Define that table of strings in ppc_md structure and check it directly
from probe_machine() instead of using ppc_md.probe() for that.

Keep checking in ppc_md.probe() only for more complex probing.

All .compatible could be replaced with a single element NULL
terminated list but that's not worth the churn. Can be do incrementaly
in follow-up patches.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214103152.12269-4-mpe@ellerman.id.au
2024-03-03 22:20:29 +11:00
..
clock-commonclk.c powerpc/mpc512x: fix resource printk format warning 2023-03-30 23:35:43 +11:00
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc512x_generic.c powerpc/machdep: Define 'compatibles' property in ppc_md and use it 2024-03-03 22:20:29 +11:00
mpc512x_lpbfifo.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpc512x_shared.c powerpc/512x: Make mpc512x_select_reset_compat() static 2023-08-18 17:02:40 +10:00
mpc512x.h powerpc/512x: Make mpc512x_select_reset_compat() static 2023-08-18 17:02:40 +10:00
mpc5121_ads_cpld.c powerpc/512x: Fix missing prototype warnings 2023-11-30 13:25:27 +11:00
mpc5121_ads.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpc5121_ads.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pdm360ng.c powerpc/512x: Make pdm360ng_init() static 2023-11-30 13:24:55 +11:00