]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sparc: Kill sbus_arch_preinit().
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2008 11:20:14 +0000 (04:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Aug 2008 09:15:19 +0000 (02:15 -0700)
32-bit sparc just needed it to register the ioport procfs bits, do this
via an arch_initcall() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c
arch/sparc64/kernel/sbus.c
drivers/sbus/sbus.c

index e6177dde103ba1c6fca2b82f6ae77fd62a2e5025..24645f9f56f5e85fa948022e140baa571a29b2ee 100644 (file)
@@ -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) {
index 0193e38231963624bd49544fc290ba97a562609e..0b3e7bc96f6104c7d1f543bac406b38fe15488e4 100644 (file)
@@ -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);
index 64c3e45875ff3362a1e361c9b1227bf7f76c3ffd..399567b7e15e9e88ddef78ce69dba7773e97b816 100644 (file)
@@ -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";