From c7a3f93d00726b9c51b2517ddfa4767422e9e631 Mon Sep 17 00:00:00 2001 From: Ishizaki Kou Date: Tue, 4 Dec 2007 19:34:53 +1100 Subject: [PATCH] [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 Signed-off-by: Paul Mackerras --- arch/powerpc/platforms/cell/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 98e7ef8e6f..6a56b6474f 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) -- 2.39.5