staging: vt6655: Replace MACvSetCurrBCNLength with VNSvOutPortW
Replace macro MACvSetCurrBCNLength with VNSvOutPortW 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/8ff556c84b3a4a70e8151965bcf6357e1de61bd1.1653203927.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2e07715aba
commit
4cb07b36c8
|
@ -570,11 +570,6 @@ do { \
|
|||
VNSvOutPortD(iobase + MAC_REG_BCNDMAPTR, \
|
||||
dwCurrDescAddr)
|
||||
|
||||
/* set the chip with current BCN length */
|
||||
#define MACvSetCurrBCNLength(iobase, wCurrBCNLength) \
|
||||
VNSvOutPortW(iobase + MAC_REG_BCNDMACTL + 2, \
|
||||
wCurrBCNLength)
|
||||
|
||||
#define MACvWriteBSSIDAddress(iobase, pbyEtherAddr) \
|
||||
do { \
|
||||
iowrite8(1, iobase + MAC_REG_PAGE1SEL); \
|
||||
|
|
|
@ -1422,7 +1422,7 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
|
|||
|
||||
MACvSetCurrBCNTxDescAddr(priv->port_offset, priv->tx_beacon_dma);
|
||||
|
||||
MACvSetCurrBCNLength(priv->port_offset, priv->wBCNBufLen);
|
||||
VNSvOutPortW(priv->port_offset + MAC_REG_BCNDMACTL + 2, priv->wBCNBufLen);
|
||||
/* Set auto Transmit on */
|
||||
MACvRegBitsOn(priv->port_offset, MAC_REG_TCR, TCR_AUTOBCNTX);
|
||||
/* Poll Transmit the adapter */
|
||||
|
|
Loading…
Reference in New Issue