aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorCai Huoqing <caihuoqing@baidu.com>2021-09-25 21:40:11 +0800
committerDavid S. Miller <davem@davemloft.net>2021-09-27 12:44:33 +0100
commit8b58cba44e6b17a8e2ad9b5fd43eb7ec8d1f5f1f (patch)
treee4d818a238a9670ef93bfd1f0c40744d9338ffb4 /drivers/net
parentnet: atl1c: Fix a function name in print messages (diff)
downloadlinux-dev-8b58cba44e6b17a8e2ad9b5fd43eb7ec8d1f5f1f.tar.xz
linux-dev-8b58cba44e6b17a8e2ad9b5fd43eb7ec8d1f5f1f.zip
net: broadcom: 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/broadcom/b44.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c
index fa784953c601..38b465452902 100644
--- a/drivers/net/ethernet/broadcom/b44.c
+++ b/drivers/net/ethernet/broadcom/b44.c
@@ -1200,7 +1200,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp)
bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size,
&bp->rx_ring_dma, gfp);
if (!bp->rx_ring) {
- /* Allocation may have failed due to pci_alloc_consistent
+ /* Allocation may have failed due to dma_alloc_coherent
insisting on use of GFP_DMA, which is more restrictive
than necessary... */
struct dma_desc *rx_ring;