aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/pci/init.c
blob: f9156d3ac7231c731703070cb8c2e49f33864de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <linux/config.h>
#include <linux/pci.h>
#include <linux/init.h>
#include "pci.h"

/* arch_initcall has too random ordering, so call the initializers
   in the right sequence from here. */
static __init int pci_access_init(void)
{
#ifdef CONFIG_PCI_MMCONFIG
	pci_mmcfg_init();
#endif
	if (raw_pci_ops)
		return 0;
#ifdef CONFIG_PCI_BIOS
	pci_pcbios_init();
#endif
	if (raw_pci_ops)
		return 0;
#ifdef CONFIG_PCI_DIRECT
	pci_direct_init();
#endif
	return 0;
}
arch_initcall(pci_access_init);