summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-10 12:58:10 (GMT)
committerPaul Mackerras <paulus@samba.org>2005-10-10 12:58:10 (GMT)
commite574d238ab907963ae6f97cb6bf12bb8fd48c376 (patch)
tree038a29b3ec5d61a6f5cb3f17ae671ea6471eeb47 /include/asm-ppc
parentc5200c90db3823a6e2f529acf202c4aed04966ae (diff)
downloadlinux-e574d238ab907963ae6f97cb6bf12bb8fd48c376.tar.xz
powerpc: Fix compilation for 32-bit configs
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/pci-bridge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc/pci-bridge.h b/include/asm-ppc/pci-bridge.h
index ffa4234..e58c78f 100644
--- a/include/asm-ppc/pci-bridge.h
+++ b/include/asm-ppc/pci-bridge.h
@@ -79,6 +79,11 @@ struct pci_controller {
struct resource mem_space;
};
+static inline struct pci_controller *pci_bus_to_host(struct pci_bus *bus)
+{
+ return bus->sysdata;
+}
+
/* These are used for config access before all the PCI probing
has been done. */
int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn,