Fix typo in new EMAC driver.
Fix an obvious typo in emac_xmit_finish. Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
David S. Miller
parent
1dad939ddb
commit
07c2c76e27
@@ -1232,9 +1232,9 @@ static inline int emac_xmit_finish(struct emac_instance *dev, int len)
|
|||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
if (emac_has_feature(dev, EMAC_FTR_EMAC4))
|
if (emac_has_feature(dev, EMAC_FTR_EMAC4))
|
||||||
out_be32(&p->tmr0, EMAC_TMR0_XMIT);
|
|
||||||
else
|
|
||||||
out_be32(&p->tmr0, EMAC4_TMR0_XMIT);
|
out_be32(&p->tmr0, EMAC4_TMR0_XMIT);
|
||||||
|
else
|
||||||
|
out_be32(&p->tmr0, EMAC_TMR0_XMIT);
|
||||||
|
|
||||||
if (unlikely(++dev->tx_cnt == NUM_TX_BUFF)) {
|
if (unlikely(++dev->tx_cnt == NUM_TX_BUFF)) {
|
||||||
netif_stop_queue(ndev);
|
netif_stop_queue(ndev);
|
||||||
|
Reference in New Issue
Block a user