summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorCai Huoqing <caihuoqing@baidu.com>2021-09-25 21:40:12 +0800
committerDavid S. Miller <davem@davemloft.net>2021-09-27 12:44:33 +0100
commite7e9d2088d9ce4c0c766cf9c3c26e3cc91f8bd33 (patch)
tree236f60e7df807187b70089d428231d8bbba15ca7 /drivers/net
parent8b58cba44e6b17a8e2ad9b5fd43eb7ec8d1f5f1f (diff)
downloadlinux-e7e9d2088d9ce4c0c766cf9c3c26e3cc91f8bd33.tar.bz2
net: sis: Fix a function name in comments
Use dma_alloc_coherent() instead of pci_alloc_consistent(), because only dma_alloc_coherent() is called here. Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/sis/sis190.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c
index 3d1a18a01ce5..be4d772e68cf 100644
--- a/drivers/net/ethernet/sis/sis190.c
+++ b/drivers/net/ethernet/sis/sis190.c
@@ -1070,7 +1070,7 @@ static int sis190_open(struct net_device *dev)
/*
* Rx and Tx descriptors need 256 bytes alignment.
- * pci_alloc_consistent() guarantees a stronger alignment.
+ * dma_alloc_coherent() guarantees a stronger alignment.
*/
tp->TxDescRing = dma_alloc_coherent(&pdev->dev, TX_RING_BYTES,
&tp->tx_dma, GFP_KERNEL);