From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns6.sony.co.jp (NS6.Sony.CO.JP [137.153.0.32]) by ozlabs.org (Postfix) with ESMTP id EFC8667D14 for ; Wed, 8 Nov 2006 19:24:41 +1100 (EST) Received: from mail2.sony.co.jp (localhost [127.0.0.1]) by mail2.sony.co.jp (R8/Sony) with ESMTP id kA88OdXG007577 for ; Wed, 8 Nov 2006 17:24:39 +0900 (JST) Received: from mailgw01.scei.sony.co.jp (mailgw01.scei.sony.co.jp [43.27.73.7]) by mail2.sony.co.jp (R8/Sony) with SMTP id kA88OdqY007555 for ; Wed, 8 Nov 2006 17:24:39 +0900 (JST) Message-ID: <45519440.7060106@am.sony.com> Date: Wed, 08 Nov 2006 00:24:32 -0800 From: Geoff Levand MIME-Version: 1.0 To: Paul Mackerras Subject: [PATCH] powerpc: check for null init_early routine Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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