From: Rob Herring <robh@kernel.org>
To: devicetree@vger.kernel.org,
Grant Likely <grant.likely@linaro.org>,
Ralf Baechle <ralf@linux-mips.org>
Cc: linux-kernel@vger.kernel.org,
Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Rob Herring <robh@kernel.org>,
linux-mips@linux-mips.org
Subject: [PATCH 1/3] MIPS: prepare for user enabling of CONFIG_OF
Date: Tue, 2 Jun 2015 17:46:42 -0500 [thread overview]
Message-ID: <1433285204-4307-2-git-send-email-robh@kernel.org> (raw)
In-Reply-To: <1433285204-4307-1-git-send-email-robh@kernel.org>
In preparation to allow users to enable DeviceTree without arch or
machine selecting it, we need to fix build errors on MIPS. When
CONFIG_OF is enabled, device_tree_init cannot be resolved. This is
trivially fixed by using CONFIG_USE_OF instead of CONFIG_OF for prom.h.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
---
arch/mips/include/asm/prom.h | 2 +-
arch/mips/kernel/prom.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h
index 8ebc2aa..0b4b668 100644
--- a/arch/mips/include/asm/prom.h
+++ b/arch/mips/include/asm/prom.h
@@ -11,7 +11,7 @@
#ifndef __ASM_PROM_H
#define __ASM_PROM_H
-#ifdef CONFIG_OF
+#ifdef CONFIG_USE_OF
#include <linux/bug.h>
#include <linux/io.h>
#include <linux/types.h>
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index e303cb1..b130033 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -18,6 +18,7 @@
#include <linux/of_fdt.h>
#include <linux/of_platform.h>
+#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/prom.h>
--
2.1.0
next prev parent reply other threads:[~2015-06-02 22:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 22:46 [PATCH 0/3] Make CONFIG_OF user selectable Rob Herring
2015-06-02 22:46 ` Rob Herring [this message]
2015-06-03 8:24 ` [PATCH 1/3] MIPS: prepare for user enabling of CONFIG_OF Ralf Baechle
2015-06-04 8:01 ` Grant Likely
[not found] ` <1433285204-4307-1-git-send-email-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-06-02 22:46 ` [PATCH 2/3] of: make CONFIG_OF user selectable Rob Herring
[not found] ` <1433285204-4307-3-git-send-email-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-06-03 6:40 ` Geert Uytterhoeven
2015-06-03 8:14 ` Pantelis Antoniou
2015-06-02 22:46 ` [PATCH 3/3] of: make unittest select OF_EARLY_FLATTREE instead of depend on it Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433285204-4307-2-git-send-email-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=grant.likely@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=pantelis.antoniou@konsulko.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).