staging: vt6655: Replace MACvWriteISR with VNSvOutPortD
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 22 May 2022 19:48:55 +0000 (21:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 05:58:40 +0000 (07:58 +0200)
Replace macro MACvWriteISR with VNSvOutPortD 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/80cd68a83807209230a898ab0260188adfad4158.1653203927.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 5f28d9ea42325244404da75e76baad1993b1b6f3..41bc87d80ad889b48bc79c06deba35ec86bb6671 100644 (file)
@@ -1055,7 +1055,7 @@ static void vnt_interrupt_process(struct vnt_private *priv)
         * update ISR counter
         */
        while (isr && priv->vif) {
-               MACvWriteISR(priv->port_offset, isr);
+               VNSvOutPortD(priv->port_offset + MAC_REG_ISR, isr);
 
                if (isr & ISR_FETALERR) {
                        pr_debug(" ISR_FETALERR\n");
index ebadf527a9110aa8b092213a616b265e87de42f2..42b216897218817a82668833c208b219cf86960b 100644 (file)
@@ -648,9 +648,6 @@ do {                                                                        \
        iowrite8(byOrgValue, iobase + MAC_REG_STICKHW);                 \
 } while (0)
 
-#define MACvWriteISR(iobase, dwValue)                          \
-       VNSvOutPortD(iobase + MAC_REG_ISR, dwValue)
-
 #define MACvIntEnable(iobase, dwMask)                          \
        VNSvOutPortD(iobase + MAC_REG_IMR, dwMask)