net: ethernet: davinci: Fix build breakage
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 21 Jan 2013 09:38:39 +0000 (10:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 18:12:19 +0000 (13:12 -0500)
The correct name of the transmit DMA channel field in struct emac_priv
is txchan, not txch.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c

index 1c97c8171d3efa9d6a45ea6622506176301d19a5..242ec55110d2c42b2885ff72118d751dd351f10f 100644 (file)
@@ -1102,7 +1102,7 @@ static int emac_dev_xmit(struct sk_buff *skb, struct net_device *ndev)
        /* If there is no more tx desc left free then we need to
         * tell the kernel to stop sending us tx frames.
         */
-       if (unlikely(cpdma_check_free_tx_desc(priv->txch)))
+       if (unlikely(cpdma_check_free_tx_desc(priv->txchan)))
                netif_stop_queue(ndev);
 
        return NETDEV_TX_OK;