diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-11-27 13:19:00 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:41:21 -0500 |
commit | 11faa658c668030759d4aea6a273b7ac9a0b4746 (patch) | |
tree | afc9fadfaee51253a5024ee3f588b9f2f05c7401 /include/asm-powerpc | |
parent | 369cf4b940d0d92d33f39a2df11102f3e2df0e0a (diff) |
[POWERPC] fix building without PCI
At least the ide driver calls pcibus_to_node, which is not
defined when CONFIG_PCI is disabled. This adds a nop function
for the !PCI case.
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/topology.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 9fe7894ee035..50c014007de7 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h | |||
@@ -32,7 +32,14 @@ static inline int node_to_first_cpu(int node) | |||
32 | int of_node_to_nid(struct device_node *device); | 32 | int of_node_to_nid(struct device_node *device); |
33 | 33 | ||
34 | struct pci_bus; | 34 | struct pci_bus; |
35 | #ifdef CONFIG_PCI | ||
35 | extern int pcibus_to_node(struct pci_bus *bus); | 36 | extern int pcibus_to_node(struct pci_bus *bus); |
37 | #else | ||
38 | static inline int pcibus_to_node(struct pci_bus *bus) | ||
39 | { | ||
40 | return -1; | ||
41 | } | ||
42 | #endif | ||
36 | 43 | ||
37 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ | 44 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ |
38 | CPU_MASK_ALL : \ | 45 | CPU_MASK_ALL : \ |