parisc: iosapic: Convert I/O Sapic driver to use arch_initcall()
[linux-2.6-block.git] / drivers / parisc / iosapic.c
index 27478e9f4e8457bea2f2c8a5c0c87b8b2c5e22b4..a7df764f1a7224c1b8148051426035d3f31b73bb 100644 (file)
@@ -348,13 +348,10 @@ iosapic_load_irt(unsigned long cell_num, struct irt_entry **irt)
 }
 
 
-
-void __init iosapic_init(void)
+static int __init iosapic_init(void)
 {
        unsigned long cell = 0;
 
-       DBG("iosapic_init()\n");
-
 #ifdef __LP64__
        if (is_pdc_pat()) {
                int status;
@@ -371,7 +368,10 @@ void __init iosapic_init(void)
        irt_num_entry = iosapic_load_irt(cell, &irt_cell);
        if (irt_num_entry == 0)
                irt_cell = NULL;        /* old PDC w/o iosapic */
+
+       return 0;
 }
+arch_initcall(iosapic_init);
 
 
 /*