mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-08 21:53:54 +08:00
staging: vt6655: Replace MACvStart with VNSvOutPortB
Replace macro MACvStart with VNSvOutPortB 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/d998305b4dec2827b0e13e49938e68a32517c487.1651957741.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c0235e384e
commit
7436b3ea27
@ -406,7 +406,8 @@ static void device_init_registers(struct vnt_private *priv)
|
||||
MACvReceive1(priv->port_offset);
|
||||
|
||||
/* start the adapter */
|
||||
MACvStart(priv->port_offset);
|
||||
VNSvOutPortB(priv->port_offset + MAC_REG_HOSTCR,
|
||||
(HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON));
|
||||
}
|
||||
|
||||
static void device_print_info(struct vnt_private *priv)
|
||||
|
@ -605,10 +605,6 @@ do { \
|
||||
VNSvOutPortB(iobase + MAC_REG_PAGE1SEL, 0); \
|
||||
} while (0)
|
||||
|
||||
#define MACvStart(iobase) \
|
||||
VNSvOutPortB(iobase + MAC_REG_HOSTCR, \
|
||||
(HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON))
|
||||
|
||||
#define MACvRx0PerPktMode(iobase) \
|
||||
VNSvOutPortD(iobase + MAC_REG_RXDMACTL0, RX_PERPKT)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user