]> git.itanic.dy.fi Git - linux-stable/commitdiff
staging: mt7621-pci: remove 'RALINK_PCI_BAR0SETUP_ADDR' definition
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Jun 2021 12:01:49 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:19:21 +0000 (14:19 +0200)
Instead of define RALINK_PCI_BAR0SETUP_ADDR just use standard
pci defnition for this which is 'PCI_BASE_ADDRESS_0'.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210607120153.24989-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c

index c14fc48e74fc389a75e5ec66798a661e5c323f08..b83c338a2e3da0f55438a0d130c339c96b6b3c0a 100644 (file)
@@ -47,7 +47,6 @@
 #define MT7621_PCIE_OFFSET             0x2000
 #define MT7621_NEXT_PORT               0x1000
 
-#define RALINK_PCI_BAR0SETUP_ADDR      0x0010
 #define RALINK_PCI_ID                  0x0030
 #define RALINK_PCI_CLASS               0x0034
 #define RALINK_PCI_SUBID               0x0038
@@ -494,7 +493,7 @@ static void mt7621_pcie_enable_port(struct mt7621_pcie_port *port)
 
        /* map 2G DDR region */
        pcie_write(pcie, PCIE_BAR_MAP_MAX | PCIE_BAR_ENABLE,
-                  offset + RALINK_PCI_BAR0SETUP_ADDR);
+                  offset + PCI_BASE_ADDRESS_0);
 
        /* configure class code and revision ID */
        pcie_write(pcie, PCIE_CLASS_CODE | PCIE_REVISION_ID,