mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-01 19:34:35 +08:00
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>
This commit is contained in:
parent
8b58cba44e
commit
e7e9d2088d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user