Skip to contentSkip to conversation

: sparc: Kill sbus_arch_preinit().

PATCH In review David Miller 1 participant 1 message Aug 28, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 42/49 : sparc: Kill sbus_arch_preinit().

sparc: Kill sbus_arch_preinit().

32-bit sparc just needed it to register the ioport procfs bits, do this via an arch_initcall() instead.

---
 arch/sparc/kernel/ioport.c |   12 +++---------
 arch/sparc64/kernel/sbus.c |    5 -----
 drivers/sbus/sbus.c        |    3 ---
 3 files changed, 3 insertions(+), 17 deletions(-)
arch/sparc/kernel/ioport.c +3 -9
index e6177dd..24645f9 100644
@@ -393,21 +393,15 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
 #endif
 }
 
-int __init sbus_arch_preinit(void)
+static int __init sparc_register_ioport(void)
 {
 	register_proc_sparc_ioport();
 
-#ifdef CONFIG_SUN4
-	{
-		extern void sun4_dvma_init(void);
-		sun4_dvma_init();
-	}
-	return 1;
-#else
 	return 0;
-#endif
 }
 
+arch_initcall(sparc_register_ioport);
+
 void __init sbus_arch_postinit(void)
 {
 	if (sparc_cpu_model = sun4d) {
arch/sparc64/kernel/sbus.c +0 -5
index 0193e38..0b3e7bc 100644
@@ -655,11 +655,6 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
 	sbus_iommu_init(dp->node, sbus);
 }
 
-int __init sbus_arch_preinit(void)
-{
-	return 0;
-}
-
 void __init sbus_arch_postinit(void)
 {
 	extern void firetruck_init(void);
drivers/sbus/sbus.c +0 -3
index 64c3e45..399567b 100644
@@ -153,9 +153,6 @@ static int __init sbus_init(void)
 	const char *sbus_name = "sbus";
 	int num_sbus = 0;
 
-	if (sbus_arch_preinit())
-		return 0;
-
 	if (sparc_cpu_model = sun4d)
 		sbus_name = "sbi";
 
Signature · 1 line
1.5.6.5.GIT