Skip to content

Commit

Permalink
net: ethernet: davinci: Fix build breakage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and David S. Miller committed Jan 21, 2013
1 parent 8258634 commit 7373470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7373470

Please sign in to comment.