Fix typo in new EMAC driver.
authorvbarshak@ru.mvista.com <vbarshak@ru.mvista.com>
Tue, 2 Oct 2007 12:01:07 +0000 (16:01 +0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:29 +0000 (16:54 -0700)
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>
drivers/net/ibm_newemac/core.c

index 653bfdc..ce127b9 100644 (file)
@@ -1232,9 +1232,9 @@ static inline int emac_xmit_finish(struct emac_instance *dev, int len)
         * instead
         */
        if (emac_has_feature(dev, EMAC_FTR_EMAC4))
-               out_be32(&p->tmr0, EMAC_TMR0_XMIT);
-       else
                out_be32(&p->tmr0, EMAC4_TMR0_XMIT);
+       else
+               out_be32(&p->tmr0, EMAC_TMR0_XMIT);
 
        if (unlikely(++dev->tx_cnt == NUM_TX_BUFF)) {
                netif_stop_queue(ndev);