[PATCH] Check for null init_early routine
authorGeoff Levand <geoffrey.levand@am.sony.com>
Fri, 10 Nov 2006 20:01:02 +0000 (12:01 -0800)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Nov 2006 03:49:18 +0000 (14:49 +1100)
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>
arch/powerpc/kernel/setup_64.c

index ae6b67c..2fef772 100644 (file)
@@ -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