Skip to contentSkip to conversation

powerpc: check for null init_early routine

PATCH In review Geoff Levand 1 participant 1 message Nov 10, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 4/16 powerpc: check for null init_early routine

Add a check for a null ppc_md.init_early to allow platforms that don't require an init_early routine to just set this member to null.

---
 arch/powerpc/kernel/setup_64.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kernel/setup_64.c +2 -1
Index: cell--common--6/arch/powerpc/kernel/setup_64.c
===================================================================
@@ -392,7 +392,8 @@
 	 * setting up the hash table pointers. It also sets up some interrupt-mapping
 	 * related options that will be used by finish_device_tree()
 	 */
-	ppc_md.init_early();
+	if (ppc_md.init_early)
+		ppc_md.init_early();
 
  	/*
 	 * We can discover serial ports now since the above did setup the