Skip to contentSkip to conversation

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

PATCH New Antony Pavlov 1 participant 1 message Mar 31, 2016 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! MIPS: ath79: Disable platform code for OF boards.

---
 arch/mips/ath79/setup.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
arch/mips/ath79/setup.c +5 -3
index 897f49a..7adab18 100644
@@ -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;
Signature · 1 line
2.7.0