diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2016-03-06 12:57:06 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-10 19:19:16 -0800 |
commit | e206939f99a1ed1625bcce32f6eb53c296576eff (patch) | |
tree | 707227b1411ce998546003863b8fbf5d37ae9b52 /drivers/staging/vt6655 | |
parent | 3b8eb64c1b26f89de69b93907e6ada6e71e18df4 (diff) |
staging: vt6655: MACbPSWakeup replace VNSvInPortB byOrgValue with ioread8
removing byOrgValue variable.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/mac.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index a1be5a7fd7ea..6499709bc865 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -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) { |