From: Stefan Roese Date: Wed, 31 Aug 2016 08:02:15 +0000 (+0200) Subject: ahci: Make ahci_port_base() non-static to enable overwrite X-Git-Tag: v2016.11-rc1~35^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22f5de6b5cf381acf63b49655cb3d7cb5bf684ab;p=u-boot ahci: Make ahci_port_base() non-static to enable overwrite To allow a board- / platform-specific ahci_port_base() function, this patch removes "static inline" and adds __weak to this function. This will be used by the upcoming Armada 7K/8K SATA / AHCI support, which unfortunately needs a different port base address calculation. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach Cc: Igal Liberman Cc: Haim Boot Cc: Hanna Hawa --- diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 2e1ddf9dac..5139989d0b 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -45,7 +45,7 @@ u16 *ataid[AHCI_MAX_PORTS]; #define WAIT_MS_FLUSH 5000 #define WAIT_MS_LINKUP 200 -static inline void __iomem *ahci_port_base(void __iomem *base, u32 port) +__weak void __iomem *ahci_port_base(void __iomem *base, u32 port) { return base + 0x100 + (port * 0x80); }