From: Ishizaki Kou Date: Tue, 4 Dec 2007 08:34:53 +0000 (+1100) Subject: [POWERPC] cell: Fix undefined reference to mmio_nvram_init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c7a3f93d00726b9c51b2517ddfa4767422e9e631;p=openwrt%2Fstaging%2Fblogic.git [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 --- 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)