]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
chore(rpi3): remove redundant code
authorBoyan Karatotev <boyan.karatotev@arm.com>
Wed, 5 Oct 2022 13:43:54 +0000 (14:43 +0100)
committerBoyan Karatotev <boyan.karatotev@arm.com>
Wed, 12 Oct 2022 08:29:51 +0000 (09:29 +0100)
The pwr_domain_pwr_down_wfi entry is overridden by a newer
implementation. This removes the last reference to
rpi3_pwr_domain_pwr_down_wfi. Remove both as they are not needed

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Ie65c40935cd1ed3c673ffdc9aa72064f5ab4032e

plat/rpi/common/rpi3_pm.c

index 86c61f7a6880dc9ca3c765a9e58d26a02eda69e6..2f86279c1a843aa62272c0ac6568180827ecc92b 100644 (file)
@@ -123,15 +123,6 @@ static void rpi3_pwr_domain_off(const psci_power_state_t *target_state)
 #endif
 }
 
-void __dead2 plat_secondary_cold_boot_setup(void);
-
-static void __dead2
-rpi3_pwr_domain_pwr_down_wfi(const psci_power_state_t *target_state)
-{
-       disable_mmu_el3();
-       plat_secondary_cold_boot_setup();
-}
-
 /*******************************************************************************
  * Platform handler called when a power domain is about to be turned on. The
  * mpidr determines the CPU to be turned on.
@@ -262,7 +253,6 @@ static void __dead2 rpi3_system_off(void)
 static const plat_psci_ops_t plat_rpi3_psci_pm_ops = {
        .cpu_standby = rpi3_cpu_standby,
        .pwr_domain_off = rpi3_pwr_domain_off,
-       .pwr_domain_pwr_down_wfi = rpi3_pwr_domain_pwr_down_wfi,
        .pwr_domain_on = rpi3_pwr_domain_on,
        .pwr_domain_on_finish = rpi3_pwr_domain_on_finish,
        .pwr_domain_pwr_down_wfi = rpi3_pwr_down_wfi,