diff options
author | Rob Herring <rob.herring@calxeda.com> | 2011-06-29 11:59:45 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2011-07-12 12:19:28 -0400 |
commit | dc8d966bccde0b8b6c9e8c6e663c747030c17435 (patch) | |
tree | b81db07a29fe9be3472537efc858ad24bea9ba16 /arch/arm/include | |
parent | b480a4b0c81b5e3a5ccc3c045da35d890e80afb4 (diff) |
ARM: pci: make pcibios_assign_all_busses use pci_has_flag
Convert pcibios_assign_all_busses from a define to inline so platforms can
control this setting.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pci.h b/arch/arm/include/asm/pci.h index 92e2a833693d..cb77e66c969f 100644 --- a/arch/arm/include/asm/pci.h +++ b/arch/arm/include/asm/pci.h | |||
@@ -3,10 +3,16 @@ | |||
3 | 3 | ||
4 | #ifdef __KERNEL__ | 4 | #ifdef __KERNEL__ |
5 | #include <asm-generic/pci-dma-compat.h> | 5 | #include <asm-generic/pci-dma-compat.h> |
6 | #include <asm-generic/pci-bridge.h> | ||
6 | 7 | ||
7 | #include <asm/mach/pci.h> /* for pci_sys_data */ | 8 | #include <asm/mach/pci.h> /* for pci_sys_data */ |
8 | #include <mach/hardware.h> /* for PCIBIOS_MIN_* */ | 9 | #include <mach/hardware.h> /* for PCIBIOS_MIN_* */ |
9 | 10 | ||
11 | static inline int pcibios_assign_all_busses(void) | ||
12 | { | ||
13 | return pci_has_flag(PCI_REASSIGN_ALL_RSRC); | ||
14 | } | ||
15 | |||
10 | #ifdef CONFIG_PCI_DOMAINS | 16 | #ifdef CONFIG_PCI_DOMAINS |
11 | static inline int pci_domain_nr(struct pci_bus *bus) | 17 | static inline int pci_domain_nr(struct pci_bus *bus) |
12 | { | 18 | { |