浏览代码

[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>
Geoff Levand 18 年之前
父节点
当前提交
57744ea95e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/powerpc/kernel/setup_64.c

+ 2 - 1
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
 	 * setting up the hash table pointers. It also sets up some interrupt-mapping
 	 * related options that will be used by finish_device_tree()
 	 * 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
 	 * We can discover serial ports now since the above did setup the