staging: vt6655: Replace MACvIntEnable with VNSvOutPortD
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 22 May 2022 19:49:00 +0000 (21:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 05:58:40 +0000 (07:58 +0200)
Replace macro MACvIntEnable with VNSvOutPortD and as it
was only used twice, it can now be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/182b9f8edd1ce3f6ff12a2942e990dae0f80099a.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 41bc87d..d9515ef 100644 (file)
@@ -1134,7 +1134,7 @@ static void vnt_interrupt_work(struct work_struct *work)
        if (priv->vif)
                vnt_interrupt_process(priv);
 
-       MACvIntEnable(priv->port_offset, IMR_MASK_VALUE);
+       VNSvOutPortD(priv->port_offset + MAC_REG_IMR, IMR_MASK_VALUE);
 }
 
 static irqreturn_t vnt_interrupt(int irq,  void *arg)
@@ -1252,8 +1252,8 @@ static int vnt_start(struct ieee80211_hw *hw)
 
        device_init_registers(priv);
 
-       dev_dbg(&priv->pcid->dev, "call MACvIntEnable\n");
-       MACvIntEnable(priv->port_offset, IMR_MASK_VALUE);
+       dev_dbg(&priv->pcid->dev, "enable MAC interrupt\n");
+       VNSvOutPortD(priv->port_offset + MAC_REG_IMR, IMR_MASK_VALUE);
 
        ieee80211_wake_queues(hw);
 
index 42b2168..8b3ba94 100644 (file)
@@ -648,9 +648,6 @@ do {                                                                        \
        iowrite8(byOrgValue, iobase + MAC_REG_STICKHW);                 \
 } while (0)
 
-#define MACvIntEnable(iobase, dwMask)                          \
-       VNSvOutPortD(iobase + MAC_REG_IMR, dwMask)
-
 #define MACvIntDisable(iobase)                         \
        VNSvOutPortD(iobase + MAC_REG_IMR, 0)