From: Florian Fainelli Date: Wed, 15 Feb 2012 21:13:21 +0000 (+0000) Subject: correct PCI IO/Mem resource swapping X-Git-Tag: attitude_adjustment_12.09~2338 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=37f8c19028d98d8feb8bc555c25a965d16420662;p=openwrt%2Fsvn-archive%2Fopenwrt.git correct PCI IO/Mem resource swapping SVN-Revision: 30562 --- diff --git a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c index 475009cdde..557b1eb494 100644 --- a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c +++ b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c @@ -126,14 +126,14 @@ static struct pci_ops rt2880_pci_ops = { .write = rt2880_pci_config_write, }; -static struct resource rt2880_pci_io_resource = { +static struct resource rt2880_pci_mem_resource = { .name = "PCI MEM space", .start = RT2880_PCI_MEM_BASE, .end = RT2880_PCI_MEM_BASE + RT2880_PCI_MEM_SIZE - 1, .flags = IORESOURCE_MEM, }; -static struct resource rt2880_pci_mem_resource = { +static struct resource rt2880_pci_io_resource = { .name = "PCI IO space", .start = RT2880_PCI_IO_BASE, .end = RT2880_PCI_IO_BASE + RT2880_PCI_IO_SIZE - 1, @@ -142,8 +142,8 @@ static struct resource rt2880_pci_mem_resource = { static struct pci_controller rt2880_pci_controller = { .pci_ops = &rt2880_pci_ops, - .mem_resource = &rt2880_pci_io_resource, - .io_resource = &rt2880_pci_mem_resource, + .mem_resource = &rt2880_pci_mem_resource, + .io_resource = &rt2880_pci_io_resource, }; static inline u32 rt2880_pci_read_u32(unsigned long reg)