Skip to content

Commit 42ef894

Browse files
committed
MIPS: prepare for user enabling of CONFIG_OF
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> Acked-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Grant Likely <grant.likely@lianro.org> Cc: linux-mips@linux-mips.org
1 parent e7a9a5b commit 42ef894

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/mips/include/asm/prom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef __ASM_PROM_H
1212
#define __ASM_PROM_H
1313

14-
#ifdef CONFIG_OF
14+
#ifdef CONFIG_USE_OF
1515
#include <linux/bug.h>
1616
#include <linux/io.h>
1717
#include <linux/types.h>

arch/mips/kernel/prom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/of_fdt.h>
1919
#include <linux/of_platform.h>
2020

21+
#include <asm/bootinfo.h>
2122
#include <asm/page.h>
2223
#include <asm/prom.h>
2324

0 commit comments

Comments
 (0)