diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-09-25 21:40:12 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-27 12:44:33 +0100 |
commit | e7e9d2088d9ce4c0c766cf9c3c26e3cc91f8bd33 (patch) | |
tree | 236f60e7df807187b70089d428231d8bbba15ca7 /drivers/net/ethernet/sis | |
parent | 8b58cba44e6b17a8e2ad9b5fd43eb7ec8d1f5f1f (diff) |
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/ethernet/sis')
-rw-r--r-- | drivers/net/ethernet/sis/sis190.c | 2 |
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); |