From: Geoff Levand Date: Fri, 10 Nov 2006 20:01:02 +0000 (-0800) Subject: [PATCH] Check for null init_early routine X-Git-Tag: v2.6.20-rc1~15^2~9^2~9^2~146 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=57744ea95edd340d7140852ce86c743df2cd588c;p=powerpc.git [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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index ae6b67ce54..2fef772edf 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -380,7 +380,8 @@ void __init setup_system(void) * 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