powerpc/64: Move 64-bit probe_machine() to later in the boot process

We no long need the machine type that early, so we can move probe_machine()
to after the device-tree has been expanded. This will allow further
consolidation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Benjamin Herrenschmidt
2016-07-05 15:04:00 +10:00
committed by Michael Ellerman
parent 84b62c72fa
commit 406b0b6ae3
8 changed files with 21 additions and 26 deletions

View File

@@ -237,15 +237,13 @@ void __init ps3_early_mm_init(void)
static int __init ps3_probe(void)
{
unsigned long dt_root;
DBG(" -> %s:%d\n", __func__, __LINE__);
dt_root = of_get_flat_dt_root();
if (!of_flat_dt_is_compatible(dt_root, "sony,ps3"))
if (!of_machine_is_compatible("sony,ps3"))
return 0;
ps3_os_area_save_params();
pm_power_off = ps3_power_off;
DBG(" <- %s:%d\n", __func__, __LINE__);