diff options
author | Vince Bridgers <vbridgers2013@gmail.com> | 2014-03-20 21:43:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-24 12:45:00 -0400 |
commit | 80175f93f3bd88817f6a59a7253a79a7267f6f82 (patch) | |
tree | b65cf3d8d808361ca1200deecde893f5e7bbcdd8 | |
parent | a804ad0e3b4a8302412304a5e9490ea318288cc2 (diff) |
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 <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/altera/altera_sgdma.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
84 | return -EINVAL; | 84 | return -EINVAL; |
85 | } | 85 | } |
86 | 86 | ||
87 | priv->txdescphys = dma_map_single(priv->device, priv->rx_dma_desc, | 87 | priv->txdescphys = dma_map_single(priv->device, priv->tx_dma_desc, |
88 | priv->rxdescmem, DMA_TO_DEVICE); | 88 | priv->txdescmem, DMA_TO_DEVICE); |
89 | 89 | ||
90 | if (dma_mapping_error(priv->device, priv->txdescphys)) { | 90 | if (dma_mapping_error(priv->device, priv->txdescphys)) { |
91 | sgdma_uninitialize(priv); | 91 | sgdma_uninitialize(priv); |
@@ -340,7 +340,7 @@ static int sgdma_async_read(struct altera_tse_private *priv) | |||
340 | /* clear control and status */ | 340 | /* clear control and status */ |
341 | iowrite32(0, &csr->control); | 341 | iowrite32(0, &csr->control); |
342 | 342 | ||
343 | /* If statuc available, clear those bits */ | 343 | /* If status available, clear those bits */ |
344 | if (sts & 0xf) | 344 | if (sts & 0xf) |
345 | iowrite32(0xf, &csr->status); | 345 | iowrite32(0xf, &csr->status); |
346 | 346 | ||