From: Vince Bridgers Date: Fri, 21 Mar 2014 01:43:17 +0000 (-0500) Subject: Altera TSE: Correct two typos in original submission X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=80175f93f3bd88817f6a59a7253a79a7267f6f82;p=linux-beck.git Altera TSE: Correct two typos in original submission This patch addresses two typos in the original driver submission. One derived from a cut & paste error, and another is a misspelling. Signed-off-by: Vince Bridgers Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/altera/altera_sgdma.c b/drivers/net/ethernet/altera/altera_sgdma.c index ebc4840a0dbb..0ee96639ae44 100644 --- a/drivers/net/ethernet/altera/altera_sgdma.c +++ b/drivers/net/ethernet/altera/altera_sgdma.c @@ -84,8 +84,8 @@ int sgdma_initialize(struct altera_tse_private *priv) return -EINVAL; } - priv->txdescphys = dma_map_single(priv->device, priv->rx_dma_desc, - priv->rxdescmem, DMA_TO_DEVICE); + priv->txdescphys = dma_map_single(priv->device, priv->tx_dma_desc, + priv->txdescmem, DMA_TO_DEVICE); if (dma_mapping_error(priv->device, priv->txdescphys)) { sgdma_uninitialize(priv); @@ -340,7 +340,7 @@ static int sgdma_async_read(struct altera_tse_private *priv) /* clear control and status */ iowrite32(0, &csr->control); - /* If statuc available, clear those bits */ + /* If status available, clear those bits */ if (sts & 0xf) iowrite32(0xf, &csr->status);