aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/ioport.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/ioport.c')
-rw-r--r--arch/sparc/kernel/ioport.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index e6177dde103b..24645f9f56f5 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -393,21 +393,15 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
393#endif 393#endif
394} 394}
395 395
396int __init sbus_arch_preinit(void) 396static int __init sparc_register_ioport(void)
397{ 397{
398 register_proc_sparc_ioport(); 398 register_proc_sparc_ioport();
399 399
400#ifdef CONFIG_SUN4
401 {
402 extern void sun4_dvma_init(void);
403 sun4_dvma_init();
404 }
405 return 1;
406#else
407 return 0; 400 return 0;
408#endif
409} 401}
410 402
403arch_initcall(sparc_register_ioport);
404
411void __init sbus_arch_postinit(void) 405void __init sbus_arch_postinit(void)
412{ 406{
413 if (sparc_cpu_model == sun4d) { 407 if (sparc_cpu_model == sun4d) {