staging: mt7621-pci: remove unnecessary resource details.
authorNeilBrown <neil@brown.name>
Fri, 4 May 2018 04:58:36 +0000 (14:58 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:09:23 +0000 (19:09 -0700)
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>
drivers/staging/mt7621-pci/pci-mt7621.c

index 616960e01052d6a20cd8db01dd60f1bf18803c8c..5094e90eaf6933c65553f5d9010ff1c20faed6e2 100644 (file)
@@ -302,27 +302,12 @@ 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