linux-mips
[Top] [All Lists]

[PATCH v8 1/4] MIPS: Don't define early_init_devtree() and device_tree_i

To: linux-mips@linux-mips.org, ralf@linux-mips.org, devicetree-discuss@lists.ozlabs.org, Grant Likely <grant.likely@secretlab.ca>, Rob Herring <rob.herring@calxeda.com>
Subject: [PATCH v8 1/4] MIPS: Don't define early_init_devtree() and device_tree_init() in prom.c for CPU_CAVIUM_OCTEON
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 26 Apr 2012 17:47:55 -0700
Cc: linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=wAGQX8lcMO9izpgUahDOm4Axwj1rxFTJWe9QkEmdyNE=; b=wguA5x+qMezNvPaAP/4zprjQzXxw1Bq2SYl2vDm4WRtPV+0JWTtTxWbtAN7tj8d5c5 Z+OFVrqQG3OjBYuKqkhK6cUM35Zn/NJH4IrMqntduFmtIPAQs6xZEIkGQvZiUu/Avg8n bBHOTFzPAG5hTyEphr+DTvNt+cfxdOaP4+XZzmBF+7uDAn9P7VnGCcQmYwSyQhwZ3m6K ztSW2fX6TINMHKdY9yXAF9rcZuUsdpf2iC2irYCHYj5hDkutHahziDYZ168K6G++/loR Bh8bhSn1x5dDhQ7hS/AcrsE2uW2Lbs5bdv3gzNyyS4fw9WgBUjjy0jkaUhWus8ZwWYEL zVGw==
In-reply-to: <1335487678-26223-1-git-send-email-ddaney.cavm@gmail.com>
References: <1335487678-26223-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

This code is not common enough to be in a shared file, so OCTEON defines
it's own versions.

When the last of this target specific code is moved out, we can remove
all of this.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/kernel/prom.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index 558b539..4aaa5c0 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -60,6 +60,7 @@ void __init early_init_dt_setup_initrd_arch(unsigned long 
start,
 }
 #endif
 
+#ifndef CONFIG_CPU_CAVIUM_OCTEON
 void __init early_init_devtree(void *params)
 {
        /* Setup flat device-tree pointer */
@@ -95,3 +96,4 @@ void __init device_tree_init(void)
        /* free the space reserved for the dt blob */
        free_mem_mach(base, size);
 }
+#endif /* !CONFIG_CPU_CAVIUM_OCTEON */
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>