aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ath79
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/ath79')
-rw-r--r--arch/mips/ath79/pci.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c
index 942e3f9184f0..ea8aa10893d8 100644
--- a/arch/mips/ath79/pci.c
+++ b/arch/mips/ath79/pci.c
@@ -117,7 +117,7 @@ static struct platform_device *
117ath79_register_pci_ar71xx(void) 117ath79_register_pci_ar71xx(void)
118{ 118{
119 struct platform_device *pdev; 119 struct platform_device *pdev;
120 struct resource res[2]; 120 struct resource res[4];
121 121
122 memset(res, 0, sizeof(res)); 122 memset(res, 0, sizeof(res));
123 123
@@ -130,6 +130,16 @@ ath79_register_pci_ar71xx(void)
130 res[1].start = ATH79_CPU_IRQ_IP2; 130 res[1].start = ATH79_CPU_IRQ_IP2;
131 res[1].end = ATH79_CPU_IRQ_IP2; 131 res[1].end = ATH79_CPU_IRQ_IP2;
132 132
133 res[2].name = "io_base";
134 res[2].flags = IORESOURCE_IO;
135 res[2].start = 0;
136 res[2].end = 0;
137
138 res[3].name = "mem_base";
139 res[3].flags = IORESOURCE_MEM;
140 res[3].start = AR71XX_PCI_MEM_BASE;
141 res[3].end = AR71XX_PCI_MEM_BASE + AR71XX_PCI_MEM_SIZE - 1;
142
133 pdev = platform_device_register_simple("ar71xx-pci", -1, 143 pdev = platform_device_register_simple("ar71xx-pci", -1,
134 res, ARRAY_SIZE(res)); 144 res, ARRAY_SIZE(res));
135 return pdev; 145 return pdev;