summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-10-10 20:48:18 +0200
committerPaul Mackerras <paulus@samba.org>2007-10-11 12:39:36 +0200
commit38db7e740ade7f07f6315e3a3b1172d7e456b793 (patch)
tree578140e34e21dd720632387f29263d0de8610d99 /arch/powerpc/kernel/setup_32.c
parent[POWERPC] Disable vDSO support for ARCH=ppc where it's not implemented (diff)
downloadlinux-38db7e740ade7f07f6315e3a3b1172d7e456b793.tar.xz
linux-38db7e740ade7f07f6315e3a3b1172d7e456b793.zip
[POWERPC] Only call ppc_md.setup_arch() if it is provided
This allows platforms which don't have anything to do at setup_arch time (like a bunch of the 4xx platforms) to eliminate an empty setup_arch hook. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 7474502dace5..cd870a823d18 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -290,7 +290,8 @@ void __init setup_arch(char **cmdline_p)
conswitchp = &dummy_con;
#endif
- ppc_md.setup_arch();
+ if (ppc_md.setup_arch)
+ ppc_md.setup_arch();
if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
paging_init();