aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2006-11-10 15:01:02 -0500
committerPaul Mackerras <paulus@samba.org>2006-11-12 22:49:18 -0500
commit57744ea95edd340d7140852ce86c743df2cd588c (patch)
treec48065dd375b4ddcc817814ee889556a4d1978c3 /arch/powerpc/kernel/setup_64.c
parentfc9e8b4e275b6882cb537154c8fc7cde3692eea0 (diff)
[PATCH] 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. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index ae6b67ce54e7..2fef772edfc1 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -380,7 +380,8 @@ void __init setup_system(void)
380 * setting up the hash table pointers. It also sets up some interrupt-mapping 380 * setting up the hash table pointers. It also sets up some interrupt-mapping
381 * related options that will be used by finish_device_tree() 381 * related options that will be used by finish_device_tree()
382 */ 382 */
383 ppc_md.init_early(); 383 if (ppc_md.init_early)
384 ppc_md.init_early();
384 385
385 /* 386 /*
386 * We can discover serial ports now since the above did setup the 387 * We can discover serial ports now since the above did setup the