diff options
Diffstat (limited to 'arch/powerpc/sysdev/indirect_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/indirect_pci.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/indirect_pci.c b/arch/powerpc/sysdev/indirect_pci.c index 5294560c7b00..cfbd2aae93e8 100644 --- a/arch/powerpc/sysdev/indirect_pci.c +++ b/arch/powerpc/sysdev/indirect_pci.c | |||
@@ -144,14 +144,16 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
144 | 144 | ||
145 | static struct pci_ops indirect_pci_ops = | 145 | static struct pci_ops indirect_pci_ops = |
146 | { | 146 | { |
147 | indirect_read_config, | 147 | .read = indirect_read_config, |
148 | indirect_write_config | 148 | .write = indirect_write_config, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | void __init | 151 | void __init |
152 | setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data, u32 flags) | 152 | setup_indirect_pci(struct pci_controller* hose, |
153 | resource_size_t cfg_addr, | ||
154 | resource_size_t cfg_data, u32 flags) | ||
153 | { | 155 | { |
154 | unsigned long base = cfg_addr & PAGE_MASK; | 156 | resource_size_t base = cfg_addr & PAGE_MASK; |
155 | void __iomem *mbase; | 157 | void __iomem *mbase; |
156 | 158 | ||
157 | mbase = ioremap(base, PAGE_SIZE); | 159 | mbase = ioremap(base, PAGE_SIZE); |