linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/16] powerpc: check for null init_early routine
@ 2006-11-10 20:01 Geoff Levand
  0 siblings, 0 replies; only message in thread
From: Geoff Levand @ 2006-11-10 20:01 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

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.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

---
 arch/powerpc/kernel/setup_64.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: cell--common--6/arch/powerpc/kernel/setup_64.c
===================================================================
--- cell--common--6.orig/arch/powerpc/kernel/setup_64.c
+++ 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-10 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 20:01 [PATCH 4/16] powerpc: check for null init_early routine Geoff Levand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).