summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-23 16:27:37 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-06-18 19:34:40 +0200
commitacdf5d88827a0420ed0ceee3e45fa08f9d39b483 (patch)
tree858bdcb33c608a350936dbc57043564ad492415f /drivers/net
parenta6c06ec8f6598f248ade50d4dd7e5b2f32df2dde (diff)
downloadu-boot-acdf5d88827a0420ed0ceee3e45fa08f9d39b483.tar.gz
u-boot-acdf5d88827a0420ed0ceee3e45fa08f9d39b483.tar.xz
u-boot-acdf5d88827a0420ed0ceee3e45fa08f9d39b483.zip
net: eepro100: Drop inline keyword
Drop the inline keyword from the static functions, the compiler has a much better overview and can decide how to inline those functions much better. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/eepro100.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index a8d617c7e8..4446251e11 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -209,23 +209,23 @@ static const char i82558_config_cmd[] = {
#define phys_to_bus(a) pci_phys_to_mem((pci_dev_t)dev->priv, a)
#endif
-static inline int INW(struct eth_device *dev, u_long addr)
+static int INW(struct eth_device *dev, u_long addr)
{
return le16_to_cpu(readw(addr + (void *)dev->iobase));
}
-static inline void OUTW(struct eth_device *dev, int command, u_long addr)
+static void OUTW(struct eth_device *dev, int command, u_long addr)
{
writew(cpu_to_le16(command), addr + (void *)dev->iobase);
}
-static inline void OUTL(struct eth_device *dev, int command, u_long addr)
+static void OUTL(struct eth_device *dev, int command, u_long addr)
{
writel(cpu_to_le32(command), addr + (void *)dev->iobase);
}
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-static inline int INL(struct eth_device *dev, u_long addr)
+static int INL(struct eth_device *dev, u_long addr)
{
return le32_to_cpu(readl(addr + (void *)dev->iobase));
}