[PATCH] fixup! MIPS: ath79: Disable platform code for OF boards.

From: Antony Pavlov
Date: Thu Mar 31 2016 - 10:09:17 EST


---
arch/mips/ath79/setup.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 897f49a..7adab18 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -215,9 +215,11 @@ void __init plat_mem_setup(void)
ath79_detect_sys_type();
ath79_ddr_ctrl_init();

- detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
- /* OF machines should use the reset driver */
- _machine_restart = ath79_restart;
+ detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
+
+ /* OF machines should use the reset driver */
+ _machine_restart = ath79_restart;
+ }

_machine_halt = ath79_halt;
pm_power_off = ath79_halt;
--
2.7.0