]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Introduce pcibios_plat_setup
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 23 Jul 2008 15:25:14 +0000 (00:25 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2008 20:54:36 +0000 (21:54 +0100)
Introduce pcibios_plat_setup for platform-specific pcibios_setup.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c
include/asm-mips/pci.h

index 77bd5b68dc430beab3dde6dbefde63b1eca557ca..c7fe6ec621e68524b0e4ef5d391e7e47d43e472a 100644 (file)
@@ -328,7 +328,11 @@ EXPORT_SYMBOL(PCIBIOS_MIN_IO);
 EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
 #endif
 
-char *pcibios_setup(char *str)
+char * (*pcibios_plat_setup)(char *str) __devinitdata;
+
+char *__devinit pcibios_setup(char *str)
 {
+       if (pcibios_plat_setup)
+               return pcibios_plat_setup(str);
        return str;
 }
index c205875d7f31001efd3fe0bbd553322d2097a259..5510c53b7feb7f5b7d2e721b70c763d055f8ef0d 100644 (file)
@@ -174,4 +174,6 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
 
 extern int pci_probe_only;
 
+extern char * (*pcibios_plat_setup)(char *str);
+
 #endif /* _ASM_PCI_H */