staging: vt6655: Replace MACvTransmitBCN with VNSvOutPortB
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 8 May 2022 19:29:58 +0000 (21:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:41:10 +0000 (17:41 +0200)
Replace macro MACvTransmitBCN with VNSvOutPortB and as it
was the only user, it can now be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/698ce973d92065846a9db4339f017cd9e094706e.1651957741.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.h
drivers/staging/vt6655/rxtx.c

index 3a32a01..89fad23 100644 (file)
@@ -651,9 +651,6 @@ do {                                                                        \
                VNSvOutPortD(iobase + MAC_REG_AC0DMACTL, DMACTL_RUN); \
 } while (0)
 
-#define MACvTransmitBCN(iobase)                                        \
-       VNSvOutPortB(iobase + MAC_REG_BCNDMACTL, BEACON_READY)
-
 #define MACvClearStckDS(iobase)                                        \
 do {                                                                   \
        unsigned char byOrgValue;                                       \
index 53506e2..14feff4 100644 (file)
@@ -1426,7 +1426,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
        /* Set auto Transmit on */
        MACvRegBitsOn(priv->port_offset, MAC_REG_TCR, TCR_AUTOBCNTX);
        /* Poll Transmit the adapter */
-       MACvTransmitBCN(priv->port_offset);
+       VNSvOutPortB(priv->port_offset + MAC_REG_BCNDMACTL, BEACON_READY);
 
        return 0;
 }