]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ata: ahci: drop read-only ahci_ioports members
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 14 May 2019 08:33:41 +0000 (10:33 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 18 May 2019 16:32:01 +0000 (12:32 -0400)
Also get rid of ahci_setup_port(..).

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/ata/ahci.c
include/ahci.h

index 188d8431975056b5c2e5680ad6557b2d91b4357f..e3135bb75fddb303cd3e826f02926df0c25e2cfe 100644 (file)
@@ -55,17 +55,6 @@ __weak void __iomem *ahci_port_base(void __iomem *base, u32 port)
        return base + 0x100 + (port * 0x80);
 }
 
-
-static void ahci_setup_port(struct ahci_ioports *port, void __iomem *base,
-                           unsigned int port_idx)
-{
-       base = ahci_port_base(base, port_idx);
-
-       port->cmd_addr = base;
-       port->scr_addr = base + PORT_SCR;
-}
-
-
 #define msleep(a) udelay(a * 1000)
 
 static void ahci_dcache_flush_range(unsigned long begin, unsigned long len)
@@ -240,7 +229,6 @@ static int ahci_host_init(struct ahci_uc_priv *uc_priv)
                        continue;
                uc_priv->port[i].port_mmio = ahci_port_base(mmio, i);
                port_mmio = (u8 *)uc_priv->port[i].port_mmio;
-               ahci_setup_port(&uc_priv->port[i], mmio, i);
 
                /* make sure port is not active */
                tmp = readl(port_mmio + PORT_CMD);
index b42df6c77e30bcaf0c0fc77416f09e7f9d3331ea..fb96dd886115c77ddb103d3942e4c3356c06accc 100644 (file)
@@ -134,8 +134,6 @@ struct ahci_sg {
 };
 
 struct ahci_ioports {
-       void __iomem    *cmd_addr;
-       void __iomem    *scr_addr;
        void __iomem    *port_mmio;
        struct ahci_cmd_hdr     *cmd_slot;
        struct ahci_sg          *cmd_tbl_sg;