mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fixup! MIPS: ath79: Disable platform code for OF boards.
@ 2016-03-31 14:09 Antony Pavlov
  0 siblings, 0 replies; only message in thread
From: Antony Pavlov @ 2016-03-31 14:09 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Sudip Mukherjee, linux-mips, linux-kernel

---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-31 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 14:09 [PATCH] fixup! MIPS: ath79: Disable platform code for OF boards Antony Pavlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®