mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 02:48:21 +00:00
92c05fc1a3
I moved it to a separate function which is safer. This avoids problems with the linker reordering them and the less useful PCI config space access methods taking priority over the better ones. Fixes some problems with broken MMCONFIG Cc: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
26 lines
499 B
C
26 lines
499 B
C
#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);
|