]> git.hungrycats.org Git - linux/commitdiff
PPC32: add a subsys_initcall so pcibios_init gets called
authorPaul Mackerras <paulus@nanango.paulus.ozlabs.org>
Fri, 10 May 2002 08:11:08 +0000 (18:11 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 May 2002 08:11:08 +0000 (18:11 +1000)
arch/ppc/kernel/pci.c

index 9be110830ebc3ab6c1a3ece74c58674ee01d272b..1d20f1f4409aa2bedbff60c266cdd7029ebd3d9b 100644 (file)
@@ -1025,7 +1025,7 @@ pci_create_OF_bus_map(void)
 }
 #endif /* CONFIG_ALL_PPC */
 
-void __init
+static int __init
 pcibios_init(void)
 {
        struct pci_controller *hose;
@@ -1070,8 +1070,12 @@ pcibios_init(void)
        /* Call machine dependent post-init code */
        if (ppc_md.pcibios_after_init)
                ppc_md.pcibios_after_init();
+
+       return 0;
 }
 
+subsys_initcall(pcibios_init);
+
 unsigned char __init
 common_swizzle(struct pci_dev *dev, unsigned char *pinp)
 {