diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/i386/pci/init.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/i386/pci/init.c')
| -rw-r--r-- | arch/i386/pci/init.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c new file mode 100644 index 000000000000..f9156d3ac723 --- /dev/null +++ b/arch/i386/pci/init.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #include <linux/config.h> | ||
| 2 | #include <linux/pci.h> | ||
| 3 | #include <linux/init.h> | ||
| 4 | #include "pci.h" | ||
| 5 | |||
| 6 | /* arch_initcall has too random ordering, so call the initializers | ||
| 7 | in the right sequence from here. */ | ||
| 8 | static __init int pci_access_init(void) | ||
| 9 | { | ||
| 10 | #ifdef CONFIG_PCI_MMCONFIG | ||
| 11 | pci_mmcfg_init(); | ||
| 12 | #endif | ||
| 13 | if (raw_pci_ops) | ||
| 14 | return 0; | ||
| 15 | #ifdef CONFIG_PCI_BIOS | ||
| 16 | pci_pcbios_init(); | ||
| 17 | #endif | ||
| 18 | if (raw_pci_ops) | ||
| 19 | return 0; | ||
| 20 | #ifdef CONFIG_PCI_DIRECT | ||
| 21 | pci_direct_init(); | ||
| 22 | #endif | ||
| 23 | return 0; | ||
| 24 | } | ||
| 25 | arch_initcall(pci_access_init); | ||
