summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files-4.14
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2018-05-12 12:57:48 -0700
committerJohn Crispin <john@phrozen.org>2018-05-14 16:24:07 +0200
commitedea934799911c54ffa7024ef9a650f9dfc8c695 (patch)
tree647b2956181c8be598ca6d700492b4049cf57cc9 /target/linux/ramips/files-4.14
parent1f786257147f978ce4c5750fdc404851453fafcb (diff)
downloadmtk-20170518-edea934799911c54ffa7024ef9a650f9dfc8c695.zip
mtk-20170518-edea934799911c54ffa7024ef9a650f9dfc8c695.tar.gz
mtk-20170518-edea934799911c54ffa7024ef9a650f9dfc8c695.tar.bz2
ramips: remove unnecessary resource details.
These resources are extracted from devicetree, so they aren't needed here. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'target/linux/ramips/files-4.14')
-rw-r--r--target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
index 2d4cc65..a98752b 100644
--- a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
+++ b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
@@ -307,26 +307,13 @@ struct pci_ops mt7621_pci_ops= {
.write = pci_config_write,
};
-static struct resource mt7621_res_pci_mem1 = {
- .name = "PCI MEM1",
- .start = RALINK_PCI_MM_MAP_BASE,
- .end = (u32)((RALINK_PCI_MM_MAP_BASE + (unsigned char *)0x0fffffff)),
- .flags = IORESOURCE_MEM,
-};
-static struct resource mt7621_res_pci_io1 = {
- .name = "PCI I/O1",
- .start = RALINK_PCI_IO_MAP_BASE,
- .end = (u32)((RALINK_PCI_IO_MAP_BASE + (unsigned char *)0x0ffff)),
- .flags = IORESOURCE_IO,
-};
+static struct resource mt7621_res_pci_mem1;
+static struct resource mt7621_res_pci_io1;
static struct pci_controller mt7621_controller = {
.pci_ops = &mt7621_pci_ops,
.mem_resource = &mt7621_res_pci_mem1,
.io_resource = &mt7621_res_pci_io1,
- .mem_offset = 0x00000000UL,
- .io_offset = 0x00000000UL,
- .io_map_base = 0xa0000000,
};
static void