aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/smc911x.c
diff options
context:
space:
mode:
authorMarek Vasut2020-03-15 00:08:31 +0100
committermarex2020-05-01 12:35:21 +0200
commit9c211e3b055ce809ac81ea4f849594ffb6f77df4 (patch)
treef3c568f7f008b5c33550e78cb9a495a5763522a7 /drivers/net/smc911x.c
parente7ab86d9b2f24c92552be62b0447abab4f8644a2 (diff)
net: smc911x: Remove pkt_data_{push,pull}
These functions are never used and are likely a pre-DM remnant from times long past, just remove them. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/net/smc911x.c')
-rw-r--r--drivers/net/smc911x.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 257b0385c2a..24b4eaeb3fd 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -13,11 +13,6 @@
#include "smc911x.h"
-u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
- __attribute__ ((weak, alias ("smc911x_reg_read")));
-void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
- __attribute__ ((weak, alias ("smc911x_reg_write")));
-
static void smc911x_handle_mac_address(struct eth_device *dev)
{
unsigned long addrh, addrl;
@@ -157,7 +152,7 @@ static int smc911x_send(struct eth_device *dev, void *packet, int length)
tmplen = (length + 3) / 4;
while (tmplen--)
- pkt_data_push(dev, TX_DATA_FIFO, *data++);
+ smc911x_reg_write(dev, TX_DATA_FIFO, *data++);
/* wait for transmission */
while (!((smc911x_reg_read(dev, TX_FIFO_INF) &
@@ -203,7 +198,7 @@ static int smc911x_rx(struct eth_device *dev)
tmplen = (pktlen + 3) / 4;
while (tmplen--)
- *data++ = pkt_data_pull(dev, RX_DATA_FIFO);
+ *data++ = smc911x_reg_read(dev, RX_DATA_FIFO);
if (status & RX_STS_ES)
printf(DRIVERNAME