]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/52xx/lite5200: Move PHB discovery
authorOliver O'Halloran <oohall@gmail.com>
Tue, 3 Nov 2020 04:35:11 +0000 (15:35 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:05 +0000 (00:02 +1100)
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201103043523.916109-6-oohall@gmail.com
arch/powerpc/platforms/52xx/lite5200.c

index 3181aac0822532e5870c28ff32c4afa48faceca7..04cc97397095a29fa4f3e5741766dfbbe5928399 100644 (file)
@@ -165,8 +165,6 @@ static void __init lite5200_setup_arch(void)
        mpc52xx_suspend.board_resume_finish = lite5200_resume_finish;
        lite5200_pm_init();
 #endif
-
-       mpc52xx_setup_pci();
 }
 
 static const char * const board[] __initconst = {
@@ -187,6 +185,7 @@ define_machine(lite5200) {
        .name           = "lite5200",
        .probe          = lite5200_probe,
        .setup_arch     = lite5200_setup_arch,
+       .discover_phbs  = mpc52xx_setup_pci,
        .init           = mpc52xx_declare_of_platform_devices,
        .init_IRQ       = mpc52xx_init_irq,
        .get_irq        = mpc52xx_get_irq,