Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Christophe Leroy and committed by
Michael Ellerman
1c96fcde 2fc39acf

+88 -631
+4 -5
arch/powerpc/platforms/44x/canyonlands.c
··· 39 39 40 40 static int __init ppc460ex_probe(void) 41 41 { 42 - if (of_machine_is_compatible("amcc,canyonlands")) { 43 - pci_set_flags(PCI_REASSIGN_ALL_RSRC); 44 - return 1; 45 - } 46 - return 0; 42 + pci_set_flags(PCI_REASSIGN_ALL_RSRC); 43 + 44 + return 1; 47 45 } 48 46 49 47 /* USB PHY fixup code on Canyonlands kit. */ ··· 108 110 machine_device_initcall(canyonlands, ppc460ex_canyonlands_fixup); 109 111 define_machine(canyonlands) { 110 112 .name = "Canyonlands", 113 + .compatible = "amcc,canyonlands", 111 114 .probe = ppc460ex_probe, 112 115 .progress = udbg_progress, 113 116 .init_IRQ = uic_init_tree,
+1 -3
arch/powerpc/platforms/44x/ebony.c
··· 45 45 */ 46 46 static int __init ebony_probe(void) 47 47 { 48 - if (!of_machine_is_compatible("ibm,ebony")) 49 - return 0; 50 - 51 48 pci_set_flags(PCI_REASSIGN_ALL_RSRC); 52 49 53 50 return 1; ··· 52 55 53 56 define_machine(ebony) { 54 57 .name = "Ebony", 58 + .compatible = "ibm,ebony", 55 59 .probe = ebony_probe, 56 60 .progress = udbg_progress, 57 61 .init_IRQ = uic_init_tree,
+1 -12
arch/powerpc/platforms/44x/iss4xx.c
··· 140 140 iss4xx_smp_init(); 141 141 } 142 142 143 - /* 144 - * Called very early, MMU is off, device-tree isn't unflattened 145 - */ 146 - static int __init iss4xx_probe(void) 147 - { 148 - if (!of_machine_is_compatible("ibm,iss-4xx")) 149 - return 0; 150 - 151 - return 1; 152 - } 153 - 154 143 define_machine(iss4xx) { 155 144 .name = "ISS-4xx", 156 - .probe = iss4xx_probe, 145 + .compatible = "ibm,iss-4xx", 157 146 .progress = udbg_progress, 158 147 .init_IRQ = iss4xx_init_irq, 159 148 .setup_arch = iss4xx_setup_arch,
+1 -3
arch/powerpc/platforms/44x/sam440ep.c
··· 41 41 42 42 static int __init sam440ep_probe(void) 43 43 { 44 - if (!of_machine_is_compatible("acube,sam440ep")) 45 - return 0; 46 - 47 44 pci_set_flags(PCI_REASSIGN_ALL_RSRC); 48 45 49 46 return 1; ··· 48 51 49 52 define_machine(sam440ep) { 50 53 .name = "Sam440ep", 54 + .compatible = "acube,sam440ep", 51 55 .probe = sam440ep_probe, 52 56 .progress = udbg_progress, 53 57 .init_IRQ = uic_init_tree,
+1 -9
arch/powerpc/platforms/44x/warp.c
··· 41 41 } 42 42 machine_device_initcall(warp, warp_device_probe); 43 43 44 - static int __init warp_probe(void) 45 - { 46 - if (!of_machine_is_compatible("pika,warp")) 47 - return 0; 48 - 49 - return 1; 50 - } 51 - 52 44 define_machine(warp) { 53 45 .name = "Warp", 54 - .probe = warp_probe, 46 + .compatible = "pika,warp", 55 47 .progress = udbg_progress, 56 48 .init_IRQ = uic_init_tree, 57 49 .get_irq = uic_get_irq,
+1 -3
arch/powerpc/platforms/512x/mpc5121_ads.c
··· 53 53 */ 54 54 static int __init mpc5121_ads_probe(void) 55 55 { 56 - if (!of_machine_is_compatible("fsl,mpc5121ads")) 57 - return 0; 58 - 59 56 mpc512x_init_early(); 60 57 61 58 return 1; ··· 60 63 61 64 define_machine(mpc5121_ads) { 62 65 .name = "MPC5121 ADS", 66 + .compatible = "fsl,mpc5121ads", 63 67 .probe = mpc5121_ads_probe, 64 68 .setup_arch = mpc5121_ads_setup_arch, 65 69 .discover_phbs = mpc5121_ads_setup_pci,
+1 -3
arch/powerpc/platforms/512x/pdm360ng.c
··· 108 108 109 109 static int __init pdm360ng_probe(void) 110 110 { 111 - if (!of_machine_is_compatible("ifm,pdm360ng")) 112 - return 0; 113 - 114 111 mpc512x_init_early(); 115 112 116 113 return 1; ··· 115 118 116 119 define_machine(pdm360ng) { 117 120 .name = "PDM360NG", 121 + .compatible = "ifm,pdm360ng", 118 122 .probe = pdm360ng_probe, 119 123 .setup_arch = mpc512x_setup_arch, 120 124 .init = pdm360ng_init,
+1 -15
arch/powerpc/platforms/52xx/media5200.c
··· 227 227 228 228 } 229 229 230 - /* list of the supported boards */ 231 - static const char * const board[] __initconst = { 232 - "fsl,media5200", 233 - NULL 234 - }; 235 - 236 - /* 237 - * Called very early, MMU is off, device-tree isn't unflattened 238 - */ 239 - static int __init media5200_probe(void) 240 - { 241 - return of_device_compatible_match(of_root, board); 242 - } 243 - 244 230 define_machine(media5200_platform) { 245 231 .name = "media5200-platform", 246 - .probe = media5200_probe, 232 + .compatible = "fsl,media5200", 247 233 .setup_arch = media5200_setup_arch, 248 234 .discover_phbs = mpc52xx_setup_pci, 249 235 .init = mpc52xx_declare_of_platform_devices,
+1 -9
arch/powerpc/platforms/82xx/ep8248e.c
··· 301 301 } 302 302 machine_device_initcall(ep8248e, declare_of_platform_devices); 303 303 304 - /* 305 - * Called very early, device-tree isn't unflattened 306 - */ 307 - static int __init ep8248e_probe(void) 308 - { 309 - return of_machine_is_compatible("fsl,ep8248e"); 310 - } 311 - 312 304 define_machine(ep8248e) 313 305 { 314 306 .name = "Embedded Planet EP8248E", 315 - .probe = ep8248e_probe, 307 + .compatible = "fsl,ep8248e", 316 308 .setup_arch = ep8248e_setup_arch, 317 309 .init_IRQ = ep8248e_pic_init, 318 310 .get_irq = cpm2_get_irq,
+1 -9
arch/powerpc/platforms/82xx/km82xx.c
··· 188 188 } 189 189 machine_device_initcall(km82xx, declare_of_platform_devices); 190 190 191 - /* 192 - * Called very early, device-tree isn't unflattened 193 - */ 194 - static int __init km82xx_probe(void) 195 - { 196 - return of_machine_is_compatible("keymile,km82xx"); 197 - } 198 - 199 191 define_machine(km82xx) 200 192 { 201 193 .name = "Keymile km82xx", 202 - .probe = km82xx_probe, 194 + .compatible = "keymile,km82xx", 203 195 .setup_arch = km82xx_setup_arch, 204 196 .init_IRQ = km82xx_pic_init, 205 197 .get_irq = cpm2_get_irq,
+1 -9
arch/powerpc/platforms/82xx/mpc8272_ads.c
··· 191 191 } 192 192 machine_device_initcall(mpc8272_ads, declare_of_platform_devices); 193 193 194 - /* 195 - * Called very early, device-tree isn't unflattened 196 - */ 197 - static int __init mpc8272_ads_probe(void) 198 - { 199 - return of_machine_is_compatible("fsl,mpc8272ads"); 200 - } 201 - 202 194 define_machine(mpc8272_ads) 203 195 { 204 196 .name = "Freescale MPC8272 ADS", 205 - .probe = mpc8272_ads_probe, 197 + .compatible = "fsl,mpc8272ads", 206 198 .setup_arch = mpc8272_ads_setup_arch, 207 199 .discover_phbs = pq2_init_pci, 208 200 .init_IRQ = mpc8272_ads_pic_init,
+1 -9
arch/powerpc/platforms/82xx/pq2fads.c
··· 154 154 ppc_md.progress("pq2fads_setup_arch(), finish", 0); 155 155 } 156 156 157 - /* 158 - * Called very early, device-tree isn't unflattened 159 - */ 160 - static int __init pq2fads_probe(void) 161 - { 162 - return of_machine_is_compatible("fsl,pq2fads"); 163 - } 164 - 165 157 static const struct of_device_id of_bus_ids[] __initconst = { 166 158 { .name = "soc", }, 167 159 { .name = "cpm", }, ··· 172 180 define_machine(pq2fads) 173 181 { 174 182 .name = "Freescale PQ2FADS", 175 - .probe = pq2fads_probe, 183 + .compatible = "fsl,pq2fads", 176 184 .setup_arch = pq2fads_setup_arch, 177 185 .discover_phbs = pq2_init_pci, 178 186 .init_IRQ = pq2fads_pic_init,
+1 -9
arch/powerpc/platforms/83xx/asp834x.c
··· 32 32 33 33 machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices); 34 34 35 - /* 36 - * Called very early, MMU is off, device-tree isn't unflattened 37 - */ 38 - static int __init asp834x_probe(void) 39 - { 40 - return of_machine_is_compatible("analogue-and-micro,asp8347e"); 41 - } 42 - 43 35 define_machine(asp834x) { 44 36 .name = "ASP8347E", 45 - .probe = asp834x_probe, 37 + .compatible = "analogue-and-micro,asp8347e", 46 38 .setup_arch = asp834x_setup_arch, 47 39 .discover_phbs = mpc83xx_setup_pci, 48 40 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc832x_mds.c
··· 88 88 89 89 machine_device_initcall(mpc832x_mds, mpc83xx_declare_of_platform_devices); 90 90 91 - /* 92 - * Called very early, MMU is off, device-tree isn't unflattened 93 - */ 94 - static int __init mpc832x_sys_probe(void) 95 - { 96 - return of_machine_is_compatible("MPC832xMDS"); 97 - } 98 - 99 91 define_machine(mpc832x_mds) { 100 92 .name = "MPC832x MDS", 101 - .probe = mpc832x_sys_probe, 93 + .compatible = "MPC832xMDS", 102 94 .setup_arch = mpc832x_sys_setup_arch, 103 95 .discover_phbs = mpc83xx_setup_pci, 104 96 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc832x_rdb.c
··· 212 212 213 213 machine_device_initcall(mpc832x_rdb, mpc83xx_declare_of_platform_devices); 214 214 215 - /* 216 - * Called very early, MMU is off, device-tree isn't unflattened 217 - */ 218 - static int __init mpc832x_rdb_probe(void) 219 - { 220 - return of_machine_is_compatible("MPC832xRDB"); 221 - } 222 - 223 215 define_machine(mpc832x_rdb) { 224 216 .name = "MPC832x RDB", 225 - .probe = mpc832x_rdb_probe, 217 + .compatible = "MPC832xRDB", 226 218 .setup_arch = mpc832x_rdb_setup_arch, 227 219 .discover_phbs = mpc83xx_setup_pci, 228 220 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc834x_itx.c
··· 57 57 mpc834x_usb_cfg(); 58 58 } 59 59 60 - /* 61 - * Called very early, MMU is off, device-tree isn't unflattened 62 - */ 63 - static int __init mpc834x_itx_probe(void) 64 - { 65 - return of_machine_is_compatible("MPC834xMITX"); 66 - } 67 - 68 60 define_machine(mpc834x_itx) { 69 61 .name = "MPC834x ITX", 70 - .probe = mpc834x_itx_probe, 62 + .compatible = "MPC834xMITX", 71 63 .setup_arch = mpc834x_itx_setup_arch, 72 64 .discover_phbs = mpc83xx_setup_pci, 73 65 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc834x_mds.c
··· 79 79 80 80 machine_device_initcall(mpc834x_mds, mpc83xx_declare_of_platform_devices); 81 81 82 - /* 83 - * Called very early, MMU is off, device-tree isn't unflattened 84 - */ 85 - static int __init mpc834x_mds_probe(void) 86 - { 87 - return of_machine_is_compatible("MPC834xMDS"); 88 - } 89 - 90 82 define_machine(mpc834x_mds) { 91 83 .name = "MPC834x MDS", 92 - .probe = mpc834x_mds_probe, 84 + .compatible = "MPC834xMDS", 93 85 .setup_arch = mpc834x_mds_setup_arch, 94 86 .discover_phbs = mpc83xx_setup_pci, 95 87 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc836x_mds.c
··· 188 188 machine_arch_initcall(mpc836x_mds, mpc836x_usb_cfg); 189 189 #endif /* CONFIG_QE_USB */ 190 190 191 - /* 192 - * Called very early, MMU is off, device-tree isn't unflattened 193 - */ 194 - static int __init mpc836x_mds_probe(void) 195 - { 196 - return of_machine_is_compatible("MPC836xMDS"); 197 - } 198 - 199 191 define_machine(mpc836x_mds) { 200 192 .name = "MPC836x MDS", 201 - .probe = mpc836x_mds_probe, 193 + .compatible = "MPC836xMDS", 202 194 .setup_arch = mpc836x_mds_setup_arch, 203 195 .discover_phbs = mpc83xx_setup_pci, 204 196 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc836x_rdk.c
··· 28 28 mpc83xx_setup_arch(); 29 29 } 30 30 31 - /* 32 - * Called very early, MMU is off, device-tree isn't unflattened. 33 - */ 34 - static int __init mpc836x_rdk_probe(void) 35 - { 36 - return of_machine_is_compatible("fsl,mpc8360rdk"); 37 - } 38 - 39 31 define_machine(mpc836x_rdk) { 40 32 .name = "MPC836x RDK", 41 - .probe = mpc836x_rdk_probe, 33 + .compatible = "fsl,mpc8360rdk", 42 34 .setup_arch = mpc836x_rdk_setup_arch, 43 35 .discover_phbs = mpc83xx_setup_pci, 44 36 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -9
arch/powerpc/platforms/83xx/mpc837x_mds.c
··· 81 81 82 82 machine_device_initcall(mpc837x_mds, mpc83xx_declare_of_platform_devices); 83 83 84 - /* 85 - * Called very early, MMU is off, device-tree isn't unflattened 86 - */ 87 - static int __init mpc837x_mds_probe(void) 88 - { 89 - return of_machine_is_compatible("fsl,mpc837xmds"); 90 - } 91 - 92 84 define_machine(mpc837x_mds) { 93 85 .name = "MPC837x MDS", 94 - .probe = mpc837x_mds_probe, 86 + .compatible = "fsl,mpc837xmds", 95 87 .setup_arch = mpc837x_mds_setup_arch, 96 88 .discover_phbs = mpc83xx_setup_pci, 97 89 .init_IRQ = mpc83xx_ipic_init_IRQ,
+1 -10
arch/powerpc/platforms/85xx/bsc913x_qds.c
··· 50 50 51 51 machine_arch_initcall(bsc9132_qds, mpc85xx_common_publish_devices); 52 52 53 - /* 54 - * Called very early, device-tree isn't unflattened 55 - */ 56 - 57 - static int __init bsc9132_qds_probe(void) 58 - { 59 - return of_machine_is_compatible("fsl,bsc9132qds"); 60 - } 61 - 62 53 define_machine(bsc9132_qds) { 63 54 .name = "BSC9132 QDS", 64 - .probe = bsc9132_qds_probe, 55 + .compatible = "fsl,bsc9132qds", 65 56 .setup_arch = bsc913x_qds_setup_arch, 66 57 .init_IRQ = bsc913x_qds_pic_init, 67 58 #ifdef CONFIG_PCI
+1 -10
arch/powerpc/platforms/85xx/bsc913x_rdb.c
··· 40 40 41 41 machine_device_initcall(bsc9131_rdb, mpc85xx_common_publish_devices); 42 42 43 - /* 44 - * Called very early, device-tree isn't unflattened 45 - */ 46 - 47 - static int __init bsc9131_rdb_probe(void) 48 - { 49 - return of_machine_is_compatible("fsl,bsc9131rdb"); 50 - } 51 - 52 43 define_machine(bsc9131_rdb) { 53 44 .name = "BSC9131 RDB", 54 - .probe = bsc9131_rdb_probe, 45 + .compatible = "fsl,bsc9131rdb", 55 46 .setup_arch = bsc913x_rdb_setup_arch, 56 47 .init_IRQ = bsc913x_rdb_pic_init, 57 48 .get_irq = mpic_get_irq,
+1 -11
arch/powerpc/platforms/85xx/c293pcie.c
··· 45 45 46 46 machine_arch_initcall(c293_pcie, mpc85xx_common_publish_devices); 47 47 48 - /* 49 - * Called very early, device-tree isn't unflattened 50 - */ 51 - static int __init c293_pcie_probe(void) 52 - { 53 - if (of_machine_is_compatible("fsl,C293PCIE")) 54 - return 1; 55 - return 0; 56 - } 57 - 58 48 define_machine(c293_pcie) { 59 49 .name = "C293 PCIE", 60 - .probe = c293_pcie_probe, 50 + .compatible = "fsl,C293PCIE", 61 51 .setup_arch = c293_pcie_setup_arch, 62 52 .init_IRQ = c293_pcie_pic_init, 63 53 .get_irq = mpic_get_irq,
+1 -9
arch/powerpc/platforms/85xx/ge_imp3a.c
··· 190 190 ge_imp3a_get_cpci_is_syscon() ? "yes" : "no"); 191 191 } 192 192 193 - /* 194 - * Called very early, device-tree isn't unflattened 195 - */ 196 - static int __init ge_imp3a_probe(void) 197 - { 198 - return of_machine_is_compatible("ge,IMP3A"); 199 - } 200 - 201 193 machine_arch_initcall(ge_imp3a, mpc85xx_common_publish_devices); 202 194 203 195 define_machine(ge_imp3a) { 204 196 .name = "GE_IMP3A", 205 - .probe = ge_imp3a_probe, 197 + .compatible = "ge,IMP3A", 206 198 .setup_arch = ge_imp3a_setup_arch, 207 199 .init_IRQ = ge_imp3a_pic_init, 208 200 .show_cpuinfo = ge_imp3a_show_cpuinfo,
+1 -9
arch/powerpc/platforms/85xx/ksi8560.c
··· 172 172 173 173 machine_device_initcall(ksi8560, mpc85xx_common_publish_devices); 174 174 175 - /* 176 - * Called very early, device-tree isn't unflattened 177 - */ 178 - static int __init ksi8560_probe(void) 179 - { 180 - return of_machine_is_compatible("emerson,KSI8560"); 181 - } 182 - 183 175 define_machine(ksi8560) { 184 176 .name = "KSI8560", 185 - .probe = ksi8560_probe, 177 + .compatible = "emerson,KSI8560", 186 178 .setup_arch = ksi8560_setup_arch, 187 179 .init_IRQ = ksi8560_pic_init, 188 180 .show_cpuinfo = ksi8560_show_cpuinfo,
+1 -9
arch/powerpc/platforms/85xx/mpc8536_ds.c
··· 52 52 53 53 machine_arch_initcall(mpc8536_ds, mpc85xx_common_publish_devices); 54 54 55 - /* 56 - * Called very early, device-tree isn't unflattened 57 - */ 58 - static int __init mpc8536_ds_probe(void) 59 - { 60 - return of_machine_is_compatible("fsl,mpc8536ds"); 61 - } 62 - 63 55 define_machine(mpc8536_ds) { 64 56 .name = "MPC8536 DS", 65 - .probe = mpc8536_ds_probe, 57 + .compatible = "fsl,mpc8536ds", 66 58 .setup_arch = mpc8536_ds_setup_arch, 67 59 .init_IRQ = mpc8536_ds_pic_init, 68 60 #ifdef CONFIG_PCI
+1 -9
arch/powerpc/platforms/85xx/mpc85xx_ads.c
··· 151 151 152 152 machine_arch_initcall(mpc85xx_ads, mpc85xx_common_publish_devices); 153 153 154 - /* 155 - * Called very early, device-tree isn't unflattened 156 - */ 157 - static int __init mpc85xx_ads_probe(void) 158 - { 159 - return of_machine_is_compatible("MPC85xxADS"); 160 - } 161 - 162 154 define_machine(mpc85xx_ads) { 163 155 .name = "MPC85xx ADS", 164 - .probe = mpc85xx_ads_probe, 156 + .compatible = "MPC85xxADS", 165 157 .setup_arch = mpc85xx_ads_setup_arch, 166 158 .init_IRQ = mpc85xx_ads_pic_init, 167 159 .show_cpuinfo = mpc85xx_ads_show_cpuinfo,
+1 -10
arch/powerpc/platforms/85xx/mpc85xx_cds.c
··· 370 370 seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); 371 371 } 372 372 373 - 374 - /* 375 - * Called very early, device-tree isn't unflattened 376 - */ 377 - static int __init mpc85xx_cds_probe(void) 378 - { 379 - return of_machine_is_compatible("MPC85xxCDS"); 380 - } 381 - 382 373 machine_arch_initcall(mpc85xx_cds, mpc85xx_common_publish_devices); 383 374 384 375 define_machine(mpc85xx_cds) { 385 376 .name = "MPC85xx CDS", 386 - .probe = mpc85xx_cds_probe, 377 + .compatible = "MPC85xxCDS", 387 378 .setup_arch = mpc85xx_cds_setup_arch, 388 379 .init_IRQ = mpc85xx_cds_pic_init, 389 380 .show_cpuinfo = mpc85xx_cds_show_cpuinfo,
+3 -27
arch/powerpc/platforms/85xx/mpc85xx_ds.c
··· 158 158 printk("MPC85xx DS board from Freescale Semiconductor\n"); 159 159 } 160 160 161 - /* 162 - * Called very early, device-tree isn't unflattened 163 - */ 164 - static int __init mpc8544_ds_probe(void) 165 - { 166 - return !!of_machine_is_compatible("MPC8544DS"); 167 - } 168 - 169 161 machine_arch_initcall(mpc8544_ds, mpc85xx_common_publish_devices); 170 162 machine_arch_initcall(mpc8572_ds, mpc85xx_common_publish_devices); 171 163 machine_arch_initcall(p2020_ds, mpc85xx_common_publish_devices); 172 164 173 - /* 174 - * Called very early, device-tree isn't unflattened 175 - */ 176 - static int __init mpc8572_ds_probe(void) 177 - { 178 - return !!of_machine_is_compatible("fsl,MPC8572DS"); 179 - } 180 - 181 - /* 182 - * Called very early, device-tree isn't unflattened 183 - */ 184 - static int __init p2020_ds_probe(void) 185 - { 186 - return !!of_machine_is_compatible("fsl,P2020DS"); 187 - } 188 - 189 165 define_machine(mpc8544_ds) { 190 166 .name = "MPC8544 DS", 191 - .probe = mpc8544_ds_probe, 167 + .compatible = "MPC8544DS", 192 168 .setup_arch = mpc85xx_ds_setup_arch, 193 169 .init_IRQ = mpc85xx_ds_pic_init, 194 170 #ifdef CONFIG_PCI ··· 178 202 179 203 define_machine(mpc8572_ds) { 180 204 .name = "MPC8572 DS", 181 - .probe = mpc8572_ds_probe, 205 + .compatible = "fsl,MPC8572DS", 182 206 .setup_arch = mpc85xx_ds_setup_arch, 183 207 .init_IRQ = mpc85xx_ds_pic_init, 184 208 #ifdef CONFIG_PCI ··· 192 216 193 217 define_machine(p2020_ds) { 194 218 .name = "P2020 DS", 195 - .probe = p2020_ds_probe, 219 + .compatible = "fsl,P2020DS", 196 220 .setup_arch = mpc85xx_ds_setup_arch, 197 221 .init_IRQ = mpc85xx_ds_pic_init, 198 222 #ifdef CONFIG_PCI
+3 -19
arch/powerpc/platforms/85xx/mpc85xx_mds.c
··· 339 339 mpic_init(mpic); 340 340 } 341 341 342 - static int __init mpc85xx_mds_probe(void) 343 - { 344 - return of_machine_is_compatible("MPC85xxMDS"); 345 - } 346 - 347 342 define_machine(mpc8568_mds) { 348 343 .name = "MPC8568 MDS", 349 - .probe = mpc85xx_mds_probe, 344 + .compatible = "MPC85xxMDS", 350 345 .setup_arch = mpc85xx_mds_setup_arch, 351 346 .init_IRQ = mpc85xx_mds_pic_init, 352 347 .get_irq = mpic_get_irq, ··· 352 357 .pcibios_fixup_phb = fsl_pcibios_fixup_phb, 353 358 #endif 354 359 }; 355 - 356 - static int __init mpc8569_mds_probe(void) 357 - { 358 - return of_machine_is_compatible("fsl,MPC8569EMDS"); 359 - } 360 360 361 361 define_machine(mpc8569_mds) { 362 362 .name = "MPC8569 MDS", 363 - .probe = mpc8569_mds_probe, 363 + .compatible = "fsl,MPC8569EMDS", 364 364 .setup_arch = mpc85xx_mds_setup_arch, 365 365 .init_IRQ = mpc85xx_mds_pic_init, 366 366 .get_irq = mpic_get_irq, ··· 367 377 #endif 368 378 }; 369 379 370 - static int __init p1021_mds_probe(void) 371 - { 372 - return of_machine_is_compatible("fsl,P1021MDS"); 373 - 374 - } 375 - 376 380 define_machine(p1021_mds) { 377 381 .name = "P1021 MDS", 378 - .probe = p1021_mds_probe, 382 + .compatible = "fsl,P1021MDS", 379 383 .setup_arch = mpc85xx_mds_setup_arch, 380 384 .init_IRQ = mpc85xx_mds_pic_init, 381 385 .get_irq = mpic_get_irq,
+10 -71
arch/powerpc/platforms/85xx/mpc85xx_rdb.c
··· 119 119 machine_arch_initcall(p1025_rdb, mpc85xx_common_publish_devices); 120 120 machine_arch_initcall(p1024_rdb, mpc85xx_common_publish_devices); 121 121 122 - /* 123 - * Called very early, device-tree isn't unflattened 124 - */ 125 - static int __init p2020_rdb_probe(void) 126 - { 127 - if (of_machine_is_compatible("fsl,P2020RDB")) 128 - return 1; 129 - return 0; 130 - } 131 - 132 - static int __init p1020_rdb_probe(void) 133 - { 134 - if (of_machine_is_compatible("fsl,P1020RDB")) 135 - return 1; 136 - return 0; 137 - } 138 - 139 - static int __init p1020_rdb_pc_probe(void) 140 - { 141 - return of_machine_is_compatible("fsl,P1020RDB-PC"); 142 - } 143 - 144 - static int __init p1020_rdb_pd_probe(void) 145 - { 146 - return of_machine_is_compatible("fsl,P1020RDB-PD"); 147 - } 148 - 149 - static int __init p1021_rdb_pc_probe(void) 150 - { 151 - if (of_machine_is_compatible("fsl,P1021RDB-PC")) 152 - return 1; 153 - return 0; 154 - } 155 - 156 - static int __init p2020_rdb_pc_probe(void) 157 - { 158 - if (of_machine_is_compatible("fsl,P2020RDB-PC")) 159 - return 1; 160 - return 0; 161 - } 162 - 163 - static int __init p1025_rdb_probe(void) 164 - { 165 - return of_machine_is_compatible("fsl,P1025RDB"); 166 - } 167 - 168 - static int __init p1020_mbg_pc_probe(void) 169 - { 170 - return of_machine_is_compatible("fsl,P1020MBG-PC"); 171 - } 172 - 173 - static int __init p1020_utm_pc_probe(void) 174 - { 175 - return of_machine_is_compatible("fsl,P1020UTM-PC"); 176 - } 177 - 178 - static int __init p1024_rdb_probe(void) 179 - { 180 - return of_machine_is_compatible("fsl,P1024RDB"); 181 - } 182 - 183 122 define_machine(p2020_rdb) { 184 123 .name = "P2020 RDB", 185 - .probe = p2020_rdb_probe, 124 + .compatible = "fsl,P2020RDB", 186 125 .setup_arch = mpc85xx_rdb_setup_arch, 187 126 .init_IRQ = mpc85xx_rdb_pic_init, 188 127 #ifdef CONFIG_PCI ··· 135 196 136 197 define_machine(p1020_rdb) { 137 198 .name = "P1020 RDB", 138 - .probe = p1020_rdb_probe, 199 + .compatible = "fsl,P1020RDB", 139 200 .setup_arch = mpc85xx_rdb_setup_arch, 140 201 .init_IRQ = mpc85xx_rdb_pic_init, 141 202 #ifdef CONFIG_PCI ··· 149 210 150 211 define_machine(p1021_rdb_pc) { 151 212 .name = "P1021 RDB-PC", 152 - .probe = p1021_rdb_pc_probe, 213 + .compatible = "fsl,P1021RDB-PC", 153 214 .setup_arch = mpc85xx_rdb_setup_arch, 154 215 .init_IRQ = mpc85xx_rdb_pic_init, 155 216 #ifdef CONFIG_PCI ··· 163 224 164 225 define_machine(p2020_rdb_pc) { 165 226 .name = "P2020RDB-PC", 166 - .probe = p2020_rdb_pc_probe, 227 + .compatible = "fsl,P2020RDB-PC", 167 228 .setup_arch = mpc85xx_rdb_setup_arch, 168 229 .init_IRQ = mpc85xx_rdb_pic_init, 169 230 #ifdef CONFIG_PCI ··· 177 238 178 239 define_machine(p1025_rdb) { 179 240 .name = "P1025 RDB", 180 - .probe = p1025_rdb_probe, 241 + .compatible = "fsl,P1025RDB", 181 242 .setup_arch = mpc85xx_rdb_setup_arch, 182 243 .init_IRQ = mpc85xx_rdb_pic_init, 183 244 #ifdef CONFIG_PCI ··· 191 252 192 253 define_machine(p1020_mbg_pc) { 193 254 .name = "P1020 MBG-PC", 194 - .probe = p1020_mbg_pc_probe, 255 + .compatible = "fsl,P1020MBG-PC", 195 256 .setup_arch = mpc85xx_rdb_setup_arch, 196 257 .init_IRQ = mpc85xx_rdb_pic_init, 197 258 #ifdef CONFIG_PCI ··· 205 266 206 267 define_machine(p1020_utm_pc) { 207 268 .name = "P1020 UTM-PC", 208 - .probe = p1020_utm_pc_probe, 269 + .compatible = "fsl,P1020UTM-PC", 209 270 .setup_arch = mpc85xx_rdb_setup_arch, 210 271 .init_IRQ = mpc85xx_rdb_pic_init, 211 272 #ifdef CONFIG_PCI ··· 219 280 220 281 define_machine(p1020_rdb_pc) { 221 282 .name = "P1020RDB-PC", 222 - .probe = p1020_rdb_pc_probe, 283 + .compatible = "fsl,P1020RDB-PC", 223 284 .setup_arch = mpc85xx_rdb_setup_arch, 224 285 .init_IRQ = mpc85xx_rdb_pic_init, 225 286 #ifdef CONFIG_PCI ··· 233 294 234 295 define_machine(p1020_rdb_pd) { 235 296 .name = "P1020RDB-PD", 236 - .probe = p1020_rdb_pd_probe, 297 + .compatible = "fsl,P1020RDB-PD", 237 298 .setup_arch = mpc85xx_rdb_setup_arch, 238 299 .init_IRQ = mpc85xx_rdb_pic_init, 239 300 #ifdef CONFIG_PCI ··· 247 308 248 309 define_machine(p1024_rdb) { 249 310 .name = "P1024 RDB", 250 - .probe = p1024_rdb_probe, 311 + .compatible = "fsl,P1024RDB", 251 312 .setup_arch = mpc85xx_rdb_setup_arch, 252 313 .init_IRQ = mpc85xx_rdb_pic_init, 253 314 #ifdef CONFIG_PCI
+1 -9
arch/powerpc/platforms/85xx/mvme2500.c
··· 43 43 44 44 machine_arch_initcall(mvme2500, mpc85xx_common_publish_devices); 45 45 46 - /* 47 - * Called very early, device-tree isn't unflattened 48 - */ 49 - static int __init mvme2500_probe(void) 50 - { 51 - return of_machine_is_compatible("artesyn,MVME2500"); 52 - } 53 - 54 46 define_machine(mvme2500) { 55 47 .name = "MVME2500", 56 - .probe = mvme2500_probe, 48 + .compatible = "artesyn,MVME2500", 57 49 .setup_arch = mvme2500_setup_arch, 58 50 .init_IRQ = mvme2500_pic_init, 59 51 #ifdef CONFIG_PCI
+1 -9
arch/powerpc/platforms/85xx/p1022_ds.c
··· 549 549 550 550 machine_arch_initcall(p1022_ds, mpc85xx_common_publish_devices); 551 551 552 - /* 553 - * Called very early, device-tree isn't unflattened 554 - */ 555 - static int __init p1022_ds_probe(void) 556 - { 557 - return of_machine_is_compatible("fsl,p1022ds"); 558 - } 559 - 560 552 define_machine(p1022_ds) { 561 553 .name = "P1022 DS", 562 - .probe = p1022_ds_probe, 554 + .compatible = "fsl,p1022ds", 563 555 .setup_arch = p1022_ds_setup_arch, 564 556 .init_IRQ = p1022_ds_pic_init, 565 557 #ifdef CONFIG_PCI
+1 -9
arch/powerpc/platforms/85xx/p1022_rdk.c
··· 129 129 130 130 machine_arch_initcall(p1022_rdk, mpc85xx_common_publish_devices); 131 131 132 - /* 133 - * Called very early, device-tree isn't unflattened 134 - */ 135 - static int __init p1022_rdk_probe(void) 136 - { 137 - return of_machine_is_compatible("fsl,p1022rdk"); 138 - } 139 - 140 132 define_machine(p1022_rdk) { 141 133 .name = "P1022 RDK", 142 - .probe = p1022_rdk_probe, 134 + .compatible = "fsl,p1022rdk", 143 135 .setup_arch = p1022_rdk_setup_arch, 144 136 .init_IRQ = p1022_rdk_pic_init, 145 137 #ifdef CONFIG_PCI
+1 -7
arch/powerpc/platforms/85xx/p1023_rdb.c
··· 94 94 mpic_init(mpic); 95 95 } 96 96 97 - static int __init p1023_rdb_probe(void) 98 - { 99 - return of_machine_is_compatible("fsl,P1023RDB"); 100 - 101 - } 102 - 103 97 define_machine(p1023_rdb) { 104 98 .name = "P1023 RDB", 105 - .probe = p1023_rdb_probe, 99 + .compatible = "fsl,P1023RDB", 106 100 .setup_arch = mpc85xx_rdb_setup_arch, 107 101 .init_IRQ = mpc85xx_rdb_pic_init, 108 102 .get_irq = mpic_get_irq,
+1 -9
arch/powerpc/platforms/85xx/ppa8548.c
··· 72 72 } 73 73 machine_device_initcall(ppa8548, declare_of_platform_devices); 74 74 75 - /* 76 - * Called very early, device-tree isn't unflattened 77 - */ 78 - static int __init ppa8548_probe(void) 79 - { 80 - return of_machine_is_compatible("ppa8548"); 81 - } 82 - 83 75 define_machine(ppa8548) { 84 76 .name = "ppa8548", 85 - .probe = ppa8548_probe, 77 + .compatible = "ppa8548", 86 78 .setup_arch = ppa8548_setup_arch, 87 79 .init_IRQ = ppa8548_pic_init, 88 80 .show_cpuinfo = ppa8548_show_cpuinfo,
+1 -9
arch/powerpc/platforms/85xx/qemu_e500.c
··· 46 46 mpc85xx_smp_init(); 47 47 } 48 48 49 - /* 50 - * Called very early, device-tree isn't unflattened 51 - */ 52 - static int __init qemu_e500_probe(void) 53 - { 54 - return !!of_machine_is_compatible("fsl,qemu-e500"); 55 - } 56 - 57 49 machine_arch_initcall(qemu_e500, mpc85xx_common_publish_devices); 58 50 59 51 define_machine(qemu_e500) { 60 52 .name = "QEMU e500", 61 - .probe = qemu_e500_probe, 53 + .compatible = "fsl,qemu-e500", 62 54 .setup_arch = qemu_e500_setup_arch, 63 55 .init_IRQ = qemu_e500_pic_init, 64 56 #ifdef CONFIG_PCI
+1 -12
arch/powerpc/platforms/85xx/socrates.c
··· 69 69 70 70 machine_arch_initcall(socrates, mpc85xx_common_publish_devices); 71 71 72 - /* 73 - * Called very early, device-tree isn't unflattened 74 - */ 75 - static int __init socrates_probe(void) 76 - { 77 - if (of_machine_is_compatible("abb,socrates")) 78 - return 1; 79 - 80 - return 0; 81 - } 82 - 83 72 define_machine(socrates) { 84 73 .name = "Socrates", 85 - .probe = socrates_probe, 74 + .compatible = "abb,socrates", 86 75 .setup_arch = socrates_setup_arch, 87 76 .init_IRQ = socrates_pic_init, 88 77 .get_irq = mpic_get_irq,
+1 -9
arch/powerpc/platforms/85xx/stx_gp3.c
··· 83 83 84 84 machine_arch_initcall(stx_gp3, mpc85xx_common_publish_devices); 85 85 86 - /* 87 - * Called very early, device-tree isn't unflattened 88 - */ 89 - static int __init stx_gp3_probe(void) 90 - { 91 - return of_machine_is_compatible("stx,gp3-8560"); 92 - } 93 - 94 86 define_machine(stx_gp3) { 95 87 .name = "STX GP3", 96 - .probe = stx_gp3_probe, 88 + .compatible = "stx,gp3-8560", 97 89 .setup_arch = stx_gp3_setup_arch, 98 90 .init_IRQ = stx_gp3_pic_init, 99 91 .show_cpuinfo = stx_gp3_show_cpuinfo,
+1 -6
arch/powerpc/platforms/85xx/twr_p102x.c
··· 103 103 104 104 machine_arch_initcall(twr_p1025, mpc85xx_common_publish_devices); 105 105 106 - static int __init twr_p1025_probe(void) 107 - { 108 - return of_machine_is_compatible("fsl,TWR-P1025"); 109 - } 110 - 111 106 define_machine(twr_p1025) { 112 107 .name = "TWR-P1025", 113 - .probe = twr_p1025_probe, 108 + .compatible = "fsl,TWR-P1025", 114 109 .setup_arch = twr_p1025_setup_arch, 115 110 .init_IRQ = twr_p1025_pic_init, 116 111 #ifdef CONFIG_PCI
+3 -21
arch/powerpc/platforms/85xx/xes_mpc85xx.c
··· 136 136 machine_arch_initcall(xes_mpc8548, mpc85xx_common_publish_devices); 137 137 machine_arch_initcall(xes_mpc8540, mpc85xx_common_publish_devices); 138 138 139 - /* 140 - * Called very early, device-tree isn't unflattened 141 - */ 142 - static int __init xes_mpc8572_probe(void) 143 - { 144 - return of_machine_is_compatible("xes,MPC8572"); 145 - } 146 - 147 - static int __init xes_mpc8548_probe(void) 148 - { 149 - return of_machine_is_compatible("xes,MPC8548"); 150 - } 151 - 152 - static int __init xes_mpc8540_probe(void) 153 - { 154 - return of_machine_is_compatible("xes,MPC8540"); 155 - } 156 - 157 139 define_machine(xes_mpc8572) { 158 140 .name = "X-ES MPC8572", 159 - .probe = xes_mpc8572_probe, 141 + .compatible = "xes,MPC8572", 160 142 .setup_arch = xes_mpc85xx_setup_arch, 161 143 .init_IRQ = xes_mpc85xx_pic_init, 162 144 #ifdef CONFIG_PCI ··· 152 170 153 171 define_machine(xes_mpc8548) { 154 172 .name = "X-ES MPC8548", 155 - .probe = xes_mpc8548_probe, 173 + .compatible = "xes,MPC8548", 156 174 .setup_arch = xes_mpc85xx_setup_arch, 157 175 .init_IRQ = xes_mpc85xx_pic_init, 158 176 #ifdef CONFIG_PCI ··· 166 184 167 185 define_machine(xes_mpc8540) { 168 186 .name = "X-ES MPC8540", 169 - .probe = xes_mpc8540_probe, 187 + .compatible = "xes,MPC8540", 170 188 .setup_arch = xes_mpc85xx_setup_arch, 171 189 .init_IRQ = xes_mpc85xx_pic_init, 172 190 #ifdef CONFIG_PCI
+1 -17
arch/powerpc/platforms/86xx/gef_ppc9a.c
··· 175 175 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_USB, 176 176 gef_ppc9a_nec_fixup); 177 177 178 - /* 179 - * Called very early, device-tree isn't unflattened 180 - * 181 - * This function is called to determine whether the BSP is compatible with the 182 - * supplied device-tree, which is assumed to be the correct one for the actual 183 - * board. It is expected that, in the future, a kernel may support multiple 184 - * boards. 185 - */ 186 - static int __init gef_ppc9a_probe(void) 187 - { 188 - if (of_machine_is_compatible("gef,ppc9a")) 189 - return 1; 190 - 191 - return 0; 192 - } 193 - 194 178 machine_arch_initcall(gef_ppc9a, mpc86xx_common_publish_devices); 195 179 196 180 define_machine(gef_ppc9a) { 197 181 .name = "GE PPC9A", 198 - .probe = gef_ppc9a_probe, 182 + .compatible = "gef,ppc9a", 199 183 .setup_arch = gef_ppc9a_setup_arch, 200 184 .init_IRQ = gef_ppc9a_init_irq, 201 185 .show_cpuinfo = gef_ppc9a_show_cpuinfo,
+1 -17
arch/powerpc/platforms/86xx/gef_sbc310.c
··· 162 162 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_USB, 163 163 gef_sbc310_nec_fixup); 164 164 165 - /* 166 - * Called very early, device-tree isn't unflattened 167 - * 168 - * This function is called to determine whether the BSP is compatible with the 169 - * supplied device-tree, which is assumed to be the correct one for the actual 170 - * board. It is expected that, in the future, a kernel may support multiple 171 - * boards. 172 - */ 173 - static int __init gef_sbc310_probe(void) 174 - { 175 - if (of_machine_is_compatible("gef,sbc310")) 176 - return 1; 177 - 178 - return 0; 179 - } 180 - 181 165 machine_arch_initcall(gef_sbc310, mpc86xx_common_publish_devices); 182 166 183 167 define_machine(gef_sbc310) { 184 168 .name = "GE SBC310", 185 - .probe = gef_sbc310_probe, 169 + .compatible = "gef,sbc310", 186 170 .setup_arch = gef_sbc310_setup_arch, 187 171 .init_IRQ = gef_sbc310_init_irq, 188 172 .show_cpuinfo = gef_sbc310_show_cpuinfo,
+1 -17
arch/powerpc/platforms/86xx/gef_sbc610.c
··· 152 152 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_USB, 153 153 gef_sbc610_nec_fixup); 154 154 155 - /* 156 - * Called very early, device-tree isn't unflattened 157 - * 158 - * This function is called to determine whether the BSP is compatible with the 159 - * supplied device-tree, which is assumed to be the correct one for the actual 160 - * board. It is expected that, in the future, a kernel may support multiple 161 - * boards. 162 - */ 163 - static int __init gef_sbc610_probe(void) 164 - { 165 - if (of_machine_is_compatible("gef,sbc610")) 166 - return 1; 167 - 168 - return 0; 169 - } 170 - 171 155 machine_arch_initcall(gef_sbc610, mpc86xx_common_publish_devices); 172 156 173 157 define_machine(gef_sbc610) { 174 158 .name = "GE SBC610", 175 - .probe = gef_sbc610_probe, 159 + .compatible = "gef,sbc610", 176 160 .setup_arch = gef_sbc610_setup_arch, 177 161 .init_IRQ = gef_sbc610_init_irq, 178 162 .show_cpuinfo = gef_sbc610_show_cpuinfo,
+1 -12
arch/powerpc/platforms/86xx/mpc8610_hpcd.c
··· 307 307 printk("MPC86xx HPCD board from Freescale Semiconductor\n"); 308 308 } 309 309 310 - /* 311 - * Called very early, device-tree isn't unflattened 312 - */ 313 - static int __init mpc86xx_hpcd_probe(void) 314 - { 315 - if (of_machine_is_compatible("fsl,MPC8610HPCD")) 316 - return 1; /* Looks good */ 317 - 318 - return 0; 319 - } 320 - 321 310 define_machine(mpc86xx_hpcd) { 322 311 .name = "MPC86xx HPCD", 323 - .probe = mpc86xx_hpcd_probe, 312 + .compatible = "fsl,MPC8610HPCD", 324 313 .setup_arch = mpc86xx_hpcd_setup_arch, 325 314 .init_IRQ = mpc86xx_init_irq, 326 315 .get_irq = mpic_get_irq,
+1 -13
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
··· 85 85 seq_printf(m, "SVR\t\t: 0x%x\n", svid); 86 86 } 87 87 88 - 89 - /* 90 - * Called very early, device-tree isn't unflattened 91 - */ 92 - static int __init mpc86xx_hpcn_probe(void) 93 - { 94 - if (of_machine_is_compatible("fsl,mpc8641hpcn")) 95 - return 1; /* Looks good */ 96 - 97 - return 0; 98 - } 99 - 100 88 static const struct of_device_id of_bus_ids[] __initconst = { 101 89 { .compatible = "fsl,srio", }, 102 90 {}, ··· 101 113 102 114 define_machine(mpc86xx_hpcn) { 103 115 .name = "MPC86xx HPCN", 104 - .probe = mpc86xx_hpcn_probe, 116 + .compatible = "fsl,MPC8610HPCD", 105 117 .setup_arch = mpc86xx_hpcn_setup_arch, 106 118 .init_IRQ = mpc86xx_init_irq, 107 119 .show_cpuinfo = mpc86xx_hpcn_show_cpuinfo,
+1 -6
arch/powerpc/platforms/8xx/adder875.c
··· 83 83 init_ioports(); 84 84 } 85 85 86 - static int __init adder875_probe(void) 87 - { 88 - return of_machine_is_compatible("analogue-and-micro,adder875"); 89 - } 90 - 91 86 static const struct of_device_id of_bus_ids[] __initconst = { 92 87 { .compatible = "simple-bus", }, 93 88 {}, ··· 97 102 98 103 define_machine(adder875) { 99 104 .name = "Adder MPC875", 100 - .probe = adder875_probe, 105 + .compatible = "analogue-and-micro,adder875", 101 106 .setup_arch = adder875_setup, 102 107 .init_IRQ = mpc8xx_pic_init, 103 108 .get_irq = mpc8xx_get_irq,
+1 -6
arch/powerpc/platforms/8xx/ep88xc.c
··· 142 142 BCSR8_PHY2_ENABLE | BCSR8_PHY2_POWER); 143 143 } 144 144 145 - static int __init ep88xc_probe(void) 146 - { 147 - return of_machine_is_compatible("fsl,ep88xc"); 148 - } 149 - 150 145 static const struct of_device_id of_bus_ids[] __initconst = { 151 146 { .name = "soc", }, 152 147 { .name = "cpm", }, ··· 160 165 161 166 define_machine(ep88xc) { 162 167 .name = "Embedded Planet EP88xC", 163 - .probe = ep88xc_probe, 168 + .compatible = "fsl,ep88xc", 164 169 .setup_arch = ep88xc_setup_arch, 165 170 .init_IRQ = mpc8xx_pic_init, 166 171 .get_irq = mpc8xx_get_irq,
+1 -6
arch/powerpc/platforms/8xx/mpc86xads_setup.c
··· 117 117 iounmap(bcsr_io); 118 118 } 119 119 120 - static int __init mpc86xads_probe(void) 121 - { 122 - return of_machine_is_compatible("fsl,mpc866ads"); 123 - } 124 - 125 120 static const struct of_device_id of_bus_ids[] __initconst = { 126 121 { .name = "soc", }, 127 122 { .name = "cpm", }, ··· 134 139 135 140 define_machine(mpc86x_ads) { 136 141 .name = "MPC86x ADS", 137 - .probe = mpc86xads_probe, 142 + .compatible = "fsl,mpc866ads", 138 143 .setup_arch = mpc86xads_setup_arch, 139 144 .init_IRQ = mpc8xx_pic_init, 140 145 .get_irq = mpc8xx_get_irq,
+1 -6
arch/powerpc/platforms/8xx/mpc885ads_setup.c
··· 192 192 } 193 193 } 194 194 195 - static int __init mpc885ads_probe(void) 196 - { 197 - return of_machine_is_compatible("fsl,mpc885ads"); 198 - } 199 - 200 195 static const struct of_device_id of_bus_ids[] __initconst = { 201 196 { .name = "soc", }, 202 197 { .name = "cpm", }, ··· 210 215 211 216 define_machine(mpc885_ads) { 212 217 .name = "Freescale MPC885 ADS", 213 - .probe = mpc885ads_probe, 218 + .compatible = "fsl,mpc885ads", 214 219 .setup_arch = mpc885ads_setup_arch, 215 220 .init_IRQ = mpc8xx_pic_init, 216 221 .get_irq = mpc8xx_get_irq,
+1 -6
arch/powerpc/platforms/8xx/tqm8xx_setup.c
··· 121 121 init_ioports(); 122 122 } 123 123 124 - static int __init tqm8xx_probe(void) 125 - { 126 - return of_machine_is_compatible("tqc,tqm8xx"); 127 - } 128 - 129 124 static const struct of_device_id of_bus_ids[] __initconst = { 130 125 { .name = "soc", }, 131 126 { .name = "cpm", }, ··· 139 144 140 145 define_machine(tqm8xx) { 141 146 .name = "TQM8xx", 142 - .probe = tqm8xx_probe, 147 + .compatible = "tqc,tqm8xx", 143 148 .setup_arch = tqm8xx_setup_arch, 144 149 .init_IRQ = mpc8xx_pic_init, 145 150 .get_irq = mpc8xx_get_irq,
+9 -12
arch/powerpc/platforms/amigaone/setup.c
··· 143 143 144 144 static int __init amigaone_probe(void) 145 145 { 146 - if (of_machine_is_compatible("eyetech,amigaone")) { 147 - /* 148 - * Coherent memory access cause complete system lockup! Thus 149 - * disable this CPU feature, even if the CPU needs it. 150 - */ 151 - cur_cpu_spec->cpu_features &= ~CPU_FTR_NEED_COHERENT; 146 + /* 147 + * Coherent memory access cause complete system lockup! Thus 148 + * disable this CPU feature, even if the CPU needs it. 149 + */ 150 + cur_cpu_spec->cpu_features &= ~CPU_FTR_NEED_COHERENT; 152 151 153 - DMA_MODE_READ = 0x44; 154 - DMA_MODE_WRITE = 0x48; 152 + DMA_MODE_READ = 0x44; 153 + DMA_MODE_WRITE = 0x48; 155 154 156 - return 1; 157 - } 158 - 159 - return 0; 155 + return 1; 160 156 } 161 157 162 158 define_machine(amigaone) { 163 159 .name = "AmigaOne", 160 + .compatible = "eyetech,amigaone", 164 161 .probe = amigaone_probe, 165 162 .setup_arch = amigaone_setup_arch, 166 163 .discover_phbs = amigaone_discover_phbs,
+1 -3
arch/powerpc/platforms/embedded6xx/gamecube.c
··· 50 50 51 51 static int __init gamecube_probe(void) 52 52 { 53 - if (!of_machine_is_compatible("nintendo,gamecube")) 54 - return 0; 55 - 56 53 pm_power_off = gamecube_power_off; 57 54 58 55 ug_udbg_init(); ··· 64 67 65 68 define_machine(gamecube) { 66 69 .name = "gamecube", 70 + .compatible = "nintendo,gamecube", 67 71 .probe = gamecube_probe, 68 72 .restart = gamecube_restart, 69 73 .halt = gamecube_halt,
+1 -11
arch/powerpc/platforms/embedded6xx/holly.c
··· 241 241 for (;;) ; 242 242 } 243 243 244 - /* 245 - * Called very early, device-tree isn't unflattened 246 - */ 247 - static int __init holly_probe(void) 248 - { 249 - if (!of_machine_is_compatible("ibm,holly")) 250 - return 0; 251 - return 1; 252 - } 253 - 254 244 static int ppc750_machine_check_exception(struct pt_regs *regs) 255 245 { 256 246 const struct exception_table_entry *entry; ··· 257 267 258 268 define_machine(holly){ 259 269 .name = "PPC750 GX/CL TSI", 260 - .probe = holly_probe, 270 + .compatible = "ibm,holly", 261 271 .setup_arch = holly_setup_arch, 262 272 .discover_phbs = holly_init_pci, 263 273 .init_IRQ = holly_init_IRQ,
+1 -3
arch/powerpc/platforms/embedded6xx/linkstation.c
··· 143 143 144 144 static int __init linkstation_probe(void) 145 145 { 146 - if (!of_machine_is_compatible("linkstation")) 147 - return 0; 148 - 149 146 pm_power_off = linkstation_power_off; 150 147 151 148 return 1; ··· 150 153 151 154 define_machine(linkstation){ 152 155 .name = "Buffalo Linkstation", 156 + .compatible = "linkstation", 153 157 .probe = linkstation_probe, 154 158 .setup_arch = linkstation_setup_arch, 155 159 .discover_phbs = linkstation_setup_pci,
+1 -11
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
··· 159 159 for (;;) ; /* Spin until reset happens */ 160 160 } 161 161 162 - /* 163 - * Called very early, device-tree isn't unflattened 164 - */ 165 - static int __init mpc7448_hpc2_probe(void) 166 - { 167 - if (!of_machine_is_compatible("mpc74xx")) 168 - return 0; 169 - return 1; 170 - } 171 - 172 162 static int mpc7448_machine_check_exception(struct pt_regs *regs) 173 163 { 174 164 const struct exception_table_entry *entry; ··· 175 185 176 186 define_machine(mpc7448_hpc2){ 177 187 .name = "MPC7448 HPC2", 178 - .probe = mpc7448_hpc2_probe, 188 + .compatible = "mpc74xx", 179 189 .setup_arch = mpc7448_hpc2_setup_arch, 180 190 .discover_phbs = mpc7448_hpc2_setup_pci, 181 191 .init_IRQ = mpc7448_hpc2_init_IRQ,
+1 -9
arch/powerpc/platforms/embedded6xx/mvme5100.c
··· 186 186 ; 187 187 } 188 188 189 - /* 190 - * Called very early, device-tree isn't unflattened 191 - */ 192 - static int __init mvme5100_probe(void) 193 - { 194 - return of_machine_is_compatible("MVME5100"); 195 - } 196 - 197 189 static int __init probe_of_platform_devices(void) 198 190 { 199 191 ··· 197 205 198 206 define_machine(mvme5100) { 199 207 .name = "MVME5100", 200 - .probe = mvme5100_probe, 208 + .compatible = "MVME5100", 201 209 .setup_arch = mvme5100_setup_arch, 202 210 .discover_phbs = mvme5100_setup_pci, 203 211 .init_IRQ = mvme5100_pic_init,
+1 -6
arch/powerpc/platforms/embedded6xx/storcenter.c
··· 110 110 for (;;) ; 111 111 } 112 112 113 - static int __init storcenter_probe(void) 114 - { 115 - return of_machine_is_compatible("iomega,storcenter"); 116 - } 117 - 118 113 define_machine(storcenter){ 119 114 .name = "IOMEGA StorCenter", 120 - .probe = storcenter_probe, 115 + .compatible = "iomega,storcenter", 121 116 .setup_arch = storcenter_setup_arch, 122 117 .discover_phbs = storcenter_setup_pci, 123 118 .init_IRQ = storcenter_init_IRQ,
+1 -3
arch/powerpc/platforms/embedded6xx/wii.c
··· 141 141 142 142 static int __init wii_probe(void) 143 143 { 144 - if (!of_machine_is_compatible("nintendo,wii")) 145 - return 0; 146 - 147 144 pm_power_off = wii_power_off; 148 145 149 146 ug_udbg_init(); ··· 171 174 172 175 define_machine(wii) { 173 176 .name = "wii", 177 + .compatible = "nintendo,wii", 174 178 .probe = wii_probe, 175 179 .setup_arch = wii_setup_arch, 176 180 .restart = wii_restart,
+1 -6
arch/powerpc/platforms/microwatt/setup.c
··· 23 23 xics_init(); 24 24 } 25 25 26 - static int __init microwatt_probe(void) 27 - { 28 - return of_machine_is_compatible("microwatt-soc"); 29 - } 30 - 31 26 static int __init microwatt_populate(void) 32 27 { 33 28 return of_platform_default_populate(NULL, NULL, NULL); ··· 36 41 37 42 define_machine(microwatt) { 38 43 .name = "microwatt", 39 - .probe = microwatt_probe, 44 + .compatible = "microwatt-soc", 40 45 .init_IRQ = microwatt_init_IRQ, 41 46 .setup_arch = microwatt_setup_arch, 42 47 .progress = udbg_progress,
+1 -3
arch/powerpc/platforms/powernv/setup.c
··· 512 512 513 513 static int __init pnv_probe(void) 514 514 { 515 - if (!of_machine_is_compatible("ibm,powernv")) 516 - return 0; 517 - 518 515 if (firmware_has_feature(FW_FEATURE_OPAL)) 519 516 pnv_setup_machdep_opal(); 520 517 ··· 575 578 576 579 define_machine(powernv) { 577 580 .name = "PowerNV", 581 + .compatible = "ibm,powernv", 578 582 .probe = pnv_probe, 579 583 .setup_arch = pnv_setup_arch, 580 584 .init_IRQ = pnv_init_IRQ,
+1 -3
arch/powerpc/platforms/ps3/setup.c
··· 264 264 { 265 265 DBG(" -> %s:%d\n", __func__, __LINE__); 266 266 267 - if (!of_machine_is_compatible("sony,ps3")) 268 - return 0; 269 - 270 267 ps3_os_area_save_params(); 271 268 272 269 pm_power_off = ps3_power_off; ··· 288 291 289 292 define_machine(ps3) { 290 293 .name = "PS3", 294 + .compatible = "sony,ps3", 291 295 .probe = ps3_probe, 292 296 .setup_arch = ps3_setup_arch, 293 297 .init_IRQ = ps3_init_IRQ,