void __init prom_build_devicetree(void) { of_pdt_build_devicetree(prom_root_node, &prom_sparc_ops); of_console_init(); pr_info("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); }
void __init olpc_dt_build_devicetree(void) { phandle root; if (!olpc_ofw_is_installed()) return; root = olpc_dt_getsibling(0); if (!root) { pr_err("PROM: unable to get root node from OFW!\n"); return; } of_pdt_build_devicetree(root, &prom_olpc_ops); pr_info("PROM DT: Built device tree with %u bytes of memory.\n", prom_early_allocated); }