aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-10-10 14:48:18 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-11 06:39:36 -0400
commit38db7e740ade7f07f6315e3a3b1172d7e456b793 (patch)
tree578140e34e21dd720632387f29263d0de8610d99 /include
parentdc9b43d0f706852fc4abce5bf28958db41524328 (diff)
[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 'include')
-rw-r--r--include/asm-powerpc/machdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h
index 71c6e7eb2a26..cc7c17f16a9a 100644
--- a/include/asm-powerpc/machdep.h
+++ b/include/asm-powerpc/machdep.h
@@ -99,7 +99,7 @@ struct machdep_calls {
99#endif /* CONFIG_PPC64 */ 99#endif /* CONFIG_PPC64 */
100 100
101 int (*probe)(void); 101 int (*probe)(void);
102 void (*setup_arch)(void); 102 void (*setup_arch)(void); /* Optional, may be NULL */
103 void (*init_early)(void); 103 void (*init_early)(void);
104 /* Optional, may be NULL. */ 104 /* Optional, may be NULL. */
105 void (*show_cpuinfo)(struct seq_file *m); 105 void (*show_cpuinfo)(struct seq_file *m);