aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/platforms/85xx/ppa8548.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2023-02-18 10:15:46 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2023-03-15 00:52:10 +1100
commit1c96fcdef8c7492ecf34ed70102a1ae5253ef9d1 (patch)
tree81d6d46f95d3884c7af54e2f4138d49bdfc397bc /arch/powerpc/platforms/85xx/ppa8548.c
parentpowerpc/machdep: Define 'compatible' property in ppc_md and use it (diff)
downloadwireguard-linux-1c96fcdef8c7492ecf34ed70102a1ae5253ef9d1.tar.xz
wireguard-linux-1c96fcdef8c7492ecf34ed70102a1ae5253ef9d1.zip
powerpc/platforms: Use 'compatible' property for simple cases
Use the new 'compatible' property for simple cases. checkpatch complains about the new compatible being undocumented but in reality nothing is new so just ignore it for the time being. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/6cb9865d916231c38401ba34ad1a98c249fae135.1676711562.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/platforms/85xx/ppa8548.c')
-rw-r--r--arch/powerpc/platforms/85xx/ppa8548.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/85xx/ppa8548.c b/arch/powerpc/platforms/85xx/ppa8548.c
index 0faf2990bf2c..b030d0e7b06b 100644
--- a/arch/powerpc/platforms/85xx/ppa8548.c
+++ b/arch/powerpc/platforms/85xx/ppa8548.c
@@ -72,17 +72,9 @@ static int __init declare_of_platform_devices(void)
}
machine_device_initcall(ppa8548, declare_of_platform_devices);
-/*
- * Called very early, device-tree isn't unflattened
- */
-static int __init ppa8548_probe(void)
-{
- return of_machine_is_compatible("ppa8548");
-}
-
define_machine(ppa8548) {
.name = "ppa8548",
- .probe = ppa8548_probe,
+ .compatible = "ppa8548",
.setup_arch = ppa8548_setup_arch,
.init_IRQ = ppa8548_pic_init,
.show_cpuinfo = ppa8548_show_cpuinfo,