diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-15 21:13:21 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-15 21:13:21 +0000 |
commit | 5ad3941a703f9b864c479525ef4621310c463ab0 (patch) | |
tree | 99b5f8f251dd2bb5d7282f8a20868eb2ed566b9b /target/linux/ramips/files/arch/mips/pci/pci-rt288x.c | |
parent | 62c0190fa570c5258edb639a24a2c949dcc8a88a (diff) |
[ramips] correct PCI IO/Mem resource swapping
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30562 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/pci/pci-rt288x.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/pci/pci-rt288x.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |