diff mbox series

ipw2200: Fix a function name in print messages

Message ID 20210925124621.197-1-caihuoqing@baidu.com (mailing list archive)
State Accepted
Commit a8e5387f8362e9da66fdc76a2e761ad618ae16db
Delegated to: Kalle Valo
Headers show
Series ipw2200: Fix a function name in print messages | expand

Commit Message

Cai,Huoqing Sept. 25, 2021, 12:46 p.m. UTC
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>
---
 drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Sept. 28, 2021, 8:24 a.m. UTC | #1
Cai Huoqing <caihuoqing@baidu.com> wrote:

> 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>

Patch applied to wireless-drivers-next.git, thanks.

a8e5387f8362 ipw2200: Fix a function name in print messages
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index ada6ce32c1f1..9a99f482c84a 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
@@ -3777,7 +3777,7 @@  static int ipw_queue_tx_init(struct ipw_priv *priv,
 	    dma_alloc_coherent(&dev->dev, sizeof(q->bd[0]) * count,
 			       &q->q.dma_addr, GFP_KERNEL);
 	if (!q->bd) {
-		IPW_ERROR("pci_alloc_consistent(%zd) failed\n",
+		IPW_ERROR("dma_alloc_coherent(%zd) failed\n",
 			  sizeof(q->bd[0]) * count);
 		kfree(q->txb);
 		q->txb = NULL;