static int __init cell_publish_devices(void) { struct device_node *root = of_find_node_by_path("/"); struct device_node *np; int node; /* */ of_platform_bus_probe(NULL, cell_bus_ids, NULL); /* */ for_each_child_of_node(root, np) { if (np->type == NULL || (strcmp(np->type, "pci") != 0 && strcmp(np->type, "pciex") != 0)) continue; of_platform_device_create(np, NULL, NULL); } /* */ for_each_online_node(node) { if (cbe_get_cpu_mic_tm_regs(cbe_node_to_cpu(node)) == NULL) continue; platform_device_register_simple("cbe-mic", node, NULL, 0); } return 0; }
static int __init declare_of_platform_devices(void) { printk(KERN_DEBUG "Probe platform devices\n"); of_platform_bus_probe(NULL, of_bus_ids, NULL); return 0; }
static int __init mpc836x_declare_of_platform_devices(void) { /* Publish the QE devices */ of_platform_bus_probe(NULL, mpc836x_ids, NULL); return 0; }
static void __init mpc5121_ads_declare_of_platform_devices(void) { /* Find every child of the SOC node and add it to of_platform */ if (of_platform_bus_probe(NULL, of_bus_ids, NULL)) printk(KERN_ERR __FILE__ ": " "Error while probing of_platform bus\n"); }
static int __init celleb_publish_devices(void) { /* Publish OF platform devices for southbridge IOs */ of_platform_bus_probe(NULL, celleb_bus_ids, NULL); return 0; }
static int __init cell_publish_devices(void) { struct device_node *root = of_find_node_by_path("/"); struct device_node *np; int node; /* Publish OF platform devices for southbridge IOs */ of_platform_bus_probe(NULL, cell_bus_ids, NULL); /* On spider based blades, we need to manually create the OF * platform devices for the PCI host bridges */ for_each_child_of_node(root, np) { if (np->type == NULL || (strcmp(np->type, "pci") != 0 && strcmp(np->type, "pciex") != 0)) continue; of_platform_device_create(np, NULL, NULL); } /* There is no device for the MIC memory controller, thus we create * a platform device for it to attach the EDAC driver to. */ for_each_online_node(node) { if (cbe_get_cpu_mic_tm_regs(cbe_node_to_cpu(node)) == NULL) continue; platform_device_register_simple("cbe-mic", node, NULL, 0); } return 0; }
static int __init ebony_device_probe(void) { of_platform_bus_probe(NULL, ebony_of_bus, NULL); of_instantiate_rtc(); return 0; }
static int __init publish_devices(void) { if (!of_have_populated_dt()) return 0; return of_platform_bus_probe(NULL, bus_ids, NULL); }
static int __init olpc_create_platform_devices(void) { if (machine_is_olpc()) return of_platform_bus_probe(NULL, of_ids, NULL); else return 0; }
static int __init declare_of_platform_devices(void) { mpc86xx_common_publish_devices(); of_platform_bus_probe(NULL, of_bus_ids, NULL); return 0; }
static int __init declare_of_platform_devices(void) { of_platform_bus_probe(NULL, of_bus_ids, NULL); platform_driver_register(&ep8248e_mdio_driver); return 0; }
static int __init celleb_publish_devices(void) { of_platform_bus_probe(NULL, celleb_bus_ids, NULL); return 0; }
static int __init kmeter_declare_of_platform_devices(void) { /* Publish the QE devices */ of_platform_bus_probe(NULL, kmpbec83xx_ids, NULL); return 0; }
static int __init wii_device_probe(void) { if (!machine_is(wii)) return 0; of_platform_bus_probe(NULL, wii_of_bus, NULL); return 0; }
static int __init gamecube_device_probe(void) { if (!machine_is(gamecube)) return 0; of_platform_bus_probe(NULL, gamecube_of_bus, NULL); return 0; }
static int __init declare_of_platform_devices(void) { if (!machine_is(mpc85xx_ads)) return 0; of_platform_bus_probe(NULL, of_bus_ids, NULL); return 0; }
static int __init mpc832x_declare_of_platform_devices(void) { if (!machine_is(mpc832x_rdb)) return 0; /* Publish the QE devices */ of_platform_bus_probe(NULL, mpc832x_ids, NULL); return 0; }
/** * xilinx_init_machine() - System specific initialization, intended to be * called from board specific initialization. */ static void __init xilinx_init_machine(void) { #ifdef CONFIG_CACHE_L2X0 /* * 64KB way size, 8-way associativity, parity disabled */ l2x0_init(PL310_L2CC_BASE, 0x02060000, 0xF0F0FFFF); #endif of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); }
int __init plat_of_setup(void) { static struct of_device_id of_ids[3]; if (!of_have_populated_dt()) panic("device tree not present"); strncpy(of_ids[0].compatible, soc_info.compatible, sizeof(of_ids[0].compatible)); strncpy(of_ids[1].compatible, "simple-bus", sizeof(of_ids[1].compatible)); return of_platform_bus_probe(NULL, of_ids, NULL); }
static int __init cell_publish_devices(void) { int node; /* Publish OF platform devices for southbridge IOs */ of_platform_bus_probe(NULL, NULL, NULL); /* There is no device for the MIC memory controller, thus we create * a platform device for it to attach the EDAC driver to. */ for_each_online_node(node) { if (cbe_get_cpu_mic_tm_regs(cbe_node_to_cpu(node)) == NULL) continue; platform_device_register_simple("cbe-mic", node, NULL, 0); } return 0; }
static int __init wii_device_probe(void) { struct device_node *np; if (!machine_is(wii)) return 0; of_platform_bus_probe(NULL, wii_of_bus, NULL); np = of_find_compatible_node(NULL, NULL, "nintendo,hollywood-mem2"); if (np) { of_platform_device_create(np, NULL, NULL); of_node_put(np); } return 0; }
/** * xilinx_init_machine() - System specific initialization, intended to be * called from board specific initialization. */ void __init xilinx_init_machine(void) { of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); #ifdef CONFIG_CACHE_L2X0 /* * 64KB way size, 8-way associativity, parity disabled, prefetching option */ #ifndef CONFIG_XILINX_L2_PREFETCH l2x0_of_init(0x02060000, 0xF0F0FFFF); #else l2x0_of_init(0x72060000, 0xF0F0FFFF); #endif #endif platform_device_init(); }
void __init sirfsoc_mach_init(void) { of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL); }
static int __init ppc460ex_device_probe(void) { of_platform_bus_probe(NULL, ppc460ex_of_bus, NULL); return 0; }
static int __init declare_of_platform_devices(void) { of_platform_bus_probe(NULL, of_bus_ids, NULL); return 0; }
int __init corenet_ds_publish_devices(void) { return of_platform_bus_probe(NULL, of_device_ids, NULL); }
static int __init sam440ep_device_probe(void) { of_platform_bus_probe(NULL, sam440ep_of_bus, NULL); return 0; }
static int __init ep405_device_probe(void) { of_platform_bus_probe(NULL, ep405_of_bus, NULL); return 0; }
int __init xlp8xx_ds_publish_devices(void) { if (!of_have_populated_dt()) return 0; return of_platform_bus_probe(NULL, xlp_ids, NULL); }
static int __init warp_device_probe(void) { of_platform_bus_probe(NULL, warp_of_bus, NULL); return 0; }