summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/setup.c
diff options
context:
space:
mode:
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>2007-12-04 19:34:53 +1100
committerPaul Mackerras <paulus@samba.org>2007-12-11 13:34:39 +1100
commitc7a3f93d00726b9c51b2517ddfa4767422e9e631 (patch)
tree55957061ceda62958bf137e0750f8748e46ebb71 /arch/powerpc/platforms/cell/setup.c
parent94b146ceeee18b801ad65ea78ec02449398e8221 (diff)
downloadblackbird-op-linux-c7a3f93d00726b9c51b2517ddfa4767422e9e631.tar.gz
blackbird-op-linux-c7a3f93d00726b9c51b2517ddfa4767422e9e631.zip
[POWERPC] cell: Fix undefined reference to mmio_nvram_init
This fixes the following link error with CONFIG_PPC_CELL_NATIVE=y and CONFIG_PPC_CELL_BLADE=n: arch/powerpc/platforms/built-in.o: In function `.cell_setup_arch': setup.c:(.init.text+0xe80): undefined reference to `.mmio_nvram_init' Signed-off-by: Kou Ishizaki <Kou.Ishizaki@toshiba.co.jp> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/setup.c')
-rw-r--r--arch/powerpc/platforms/cell/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c
index 98e7ef8e6fc6..6a56b6474f52 100644
--- a/arch/powerpc/platforms/cell/setup.c
+++ b/arch/powerpc/platforms/cell/setup.c
@@ -179,7 +179,9 @@ static void __init cell_setup_arch(void)
conswitchp = &dummy_con;
#endif
+#ifdef CONFIG_MMIO_NVRAM
mmio_nvram_init();
+#endif
}
static int __init cell_probe(void)
OpenPOWER on IntegriCloud