staging: vt6655: Replace MACvStart with VNSvOutPortB
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 8 May 2022 19:29:53 +0000 (21:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:41:10 +0000 (17:41 +0200)
Replace macro MACvStart 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/d998305b4dec2827b0e13e49938e68a32517c487.1651957741.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/mac.h

index 4f26f5c..1ab7c1c 100644 (file)
@@ -406,7 +406,8 @@ static void device_init_registers(struct vnt_private *priv)
        MACvReceive1(priv->port_offset);
 
        /* start the adapter */
-       MACvStart(priv->port_offset);
+       VNSvOutPortB(priv->port_offset + MAC_REG_HOSTCR,
+                    (HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON));
 }
 
 static void device_print_info(struct vnt_private *priv)
index 5b68419..3a32a01 100644 (file)
@@ -605,10 +605,6 @@ do {                                                               \
        VNSvOutPortB(iobase + MAC_REG_PAGE1SEL, 0);             \
 } while (0)
 
-#define MACvStart(iobase)                                              \
-       VNSvOutPortB(iobase + MAC_REG_HOSTCR,                           \
-                    (HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON))
-
 #define MACvRx0PerPktMode(iobase)                                      \
        VNSvOutPortD(iobase + MAC_REG_RXDMACTL0, RX_PERPKT)