Altera TSE: Correct two typos in original submission
authorVince Bridgers <vbridgers2013@gmail.com>
Fri, 21 Mar 2014 01:43:17 +0000 (20:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2014 16:45:00 +0000 (12:45 -0400)
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 <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_sgdma.c

index ebc4840a0dbb5c31bc3246e1de1baa8edf60643e..0ee96639ae44e7a238ac36682868443caa7c43c3 100644 (file)
@@ -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);