From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757086AbcCaOJI (ORCPT ); Thu, 31 Mar 2016 10:09:08 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:34890 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756974AbcCaOJG (ORCPT ); Thu, 31 Mar 2016 10:09:06 -0400 From: Antony Pavlov To: Ralf Baechle Cc: Sudip Mukherjee , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH] fixup! MIPS: ath79: Disable platform code for OF boards. Date: Thu, 31 Mar 2016 17:09:00 +0300 Message-Id: <1459433340-12526-1-git-send-email-antonynpavlov@gmail.com> X-Mailer: git-send-email 2.7.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- 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