projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b58cba
)
net: sis: Fix a function name in comments
author
Cai Huoqing
<caihuoqing@baidu.com>
Sat, 25 Sep 2021 13:40:12 +0000
(21:40 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Sep 2021 11:44:33 +0000
(12:44 +0100)
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>
drivers/net/ethernet/sis/sis190.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/sis/sis190.c
b/drivers/net/ethernet/sis/sis190.c
index 3d1a18a01ce505607c6afc563035968b28717c89..be4d772e68cfb06b331228ac13a3fdb5fbb3e45f 100644
(file)
--- 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_consist
ent() guarantees a stronger alignment.
+ *
dma_alloc_coher
ent() guarantees a stronger alignment.
*/
tp->TxDescRing = dma_alloc_coherent(&pdev->dev, TX_RING_BYTES,
&tp->tx_dma, GFP_KERNEL);