]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: MACbPSWakeup replace VNSvInPortB byOrgValue with ioread8
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 6 Mar 2016 12:57:06 +0000 (12:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2016 03:19:16 +0000 (19:19 -0800)
removing byOrgValue variable.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/mac.c

index a1be5a7fd7ea36a37ad39a25ba4fb8a8c6aeab69..6499709bc865046a42d12da8195faf16efdb8d43 100644 (file)
@@ -765,7 +765,6 @@ void MACvSetMISCFifo(struct vnt_private *priv, unsigned short wOffset,
 bool MACbPSWakeup(struct vnt_private *priv)
 {
        void __iomem *io_base = priv->PortOffset;
-       unsigned char byOrgValue;
        unsigned int ww;
        /* Read PSCTL */
        if (MACbIsRegBitsOff(priv, MAC_REG_PSCTL, PSCTL_PS))
@@ -776,8 +775,7 @@ bool MACbPSWakeup(struct vnt_private *priv)
 
        /* Check if SyncFlushOK */
        for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
-               VNSvInPortB(io_base + MAC_REG_PSCTL, &byOrgValue);
-               if (byOrgValue & PSCTL_WAKEDONE)
+               if (ioread8(io_base + MAC_REG_PSCTL) & PSCTL_WAKEDONE)
                        break;
        }
        if (ww == W_MAX_TIMEOUT) {