diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/pcie.c')
-rw-r--r-- | arch/arm/mach-kirkwood/pcie.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index d90b9aae308d..a604b2a701aa 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -93,7 +93,7 @@ static struct pci_ops pcie_ops = { | |||
93 | }; | 93 | }; |
94 | 94 | ||
95 | 95 | ||
96 | static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | 96 | static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) |
97 | { | 97 | { |
98 | struct resource *res; | 98 | struct resource *res; |
99 | extern unsigned int kirkwood_clk_ctrl; | 99 | extern unsigned int kirkwood_clk_ctrl; |
@@ -115,7 +115,7 @@ static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
115 | */ | 115 | */ |
116 | res[0].name = "PCIe I/O Space"; | 116 | res[0].name = "PCIe I/O Space"; |
117 | res[0].flags = IORESOURCE_IO; | 117 | res[0].flags = IORESOURCE_IO; |
118 | res[0].start = KIRKWOOD_PCIE_IO_PHYS_BASE; | 118 | res[0].start = KIRKWOOD_PCIE_IO_BUS_BASE; |
119 | res[0].end = res[0].start + KIRKWOOD_PCIE_IO_SIZE - 1; | 119 | res[0].end = res[0].start + KIRKWOOD_PCIE_IO_SIZE - 1; |
120 | if (request_resource(&ioport_resource, &res[0])) | 120 | if (request_resource(&ioport_resource, &res[0])) |
121 | panic("Request PCIe IO resource failed\n"); | 121 | panic("Request PCIe IO resource failed\n"); |
@@ -126,7 +126,7 @@ static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys) | |||
126 | */ | 126 | */ |
127 | res[1].name = "PCIe Memory Space"; | 127 | res[1].name = "PCIe Memory Space"; |
128 | res[1].flags = IORESOURCE_MEM; | 128 | res[1].flags = IORESOURCE_MEM; |
129 | res[1].start = KIRKWOOD_PCIE_MEM_PHYS_BASE; | 129 | res[1].start = KIRKWOOD_PCIE_MEM_BUS_BASE; |
130 | res[1].end = res[1].start + KIRKWOOD_PCIE_MEM_SIZE - 1; | 130 | res[1].end = res[1].start + KIRKWOOD_PCIE_MEM_SIZE - 1; |
131 | if (request_resource(&iomem_resource, &res[1])) | 131 | if (request_resource(&iomem_resource, &res[1])) |
132 | panic("Request PCIe Memory resource failed\n"); | 132 | panic("Request PCIe Memory resource failed\n"); |