diff options
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh5.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh5.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/arch/sh/drivers/pci/pci-sh5.c b/arch/sh/drivers/pci/pci-sh5.c index 873ed2b44055..0bf296c78795 100644 --- a/arch/sh/drivers/pci/pci-sh5.c +++ b/arch/sh/drivers/pci/pci-sh5.c | |||
@@ -89,14 +89,13 @@ static irqreturn_t pcish5_serr_irq(int irq, void *dev_id) | |||
89 | return IRQ_NONE; | 89 | return IRQ_NONE; |
90 | } | 90 | } |
91 | 91 | ||
92 | static struct resource sh5_io_resource = { /* place holder */ }; | 92 | static struct resource sh5_pci_resources[2]; |
93 | static struct resource sh5_mem_resource = { /* place holder */ }; | ||
94 | 93 | ||
95 | static struct pci_channel sh5pci_controller = { | 94 | static struct pci_channel sh5pci_controller = { |
96 | .pci_ops = &sh5_pci_ops, | 95 | .pci_ops = &sh5_pci_ops, |
97 | .mem_resource = &sh5_mem_resource, | 96 | .resources = sh5_pci_resources, |
97 | .nr_resources = ARRAY_SIZE(sh5_pci_resources), | ||
98 | .mem_offset = 0x00000000, | 98 | .mem_offset = 0x00000000, |
99 | .io_resource = &sh5_io_resource, | ||
100 | .io_offset = 0x00000000, | 99 | .io_offset = 0x00000000, |
101 | }; | 100 | }; |
102 | 101 | ||
@@ -210,14 +209,12 @@ static int __init sh5pci_init(void) | |||
210 | SH5PCI_WRITE(AINTM, ~0); | 209 | SH5PCI_WRITE(AINTM, ~0); |
211 | SH5PCI_WRITE(PINTM, ~0); | 210 | SH5PCI_WRITE(PINTM, ~0); |
212 | 211 | ||
213 | sh5_io_resource.start = PCI_IO_AREA; | 212 | sh5_pci_resources[0].start = PCI_IO_AREA; |
214 | sh5_io_resource.end = PCI_IO_AREA + 0x10000; | 213 | sh5_pci_resources[0].end = PCI_IO_AREA + 0x10000; |
215 | 214 | ||
216 | sh5_mem_resource.start = memStart; | 215 | sh5_pci_resources[1].start = memStart; |
217 | sh5_mem_resource.end = memStart + memSize; | 216 | sh5_pci_resources[1].end = memStart + memSize; |
218 | 217 | ||
219 | register_pci_controller(&sh5pci_controller); | 218 | return register_pci_controller(&sh5pci_controller); |
220 | |||
221 | return 0; | ||
222 | } | 219 | } |
223 | arch_initcall(sh5pci_init); | 220 | arch_initcall(sh5pci_init); |