* [PATCH] ipw2200: Fix a function name in print messages
@ 2021-09-25 12:46 Cai Huoqing
2021-09-28 8:24 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Cai Huoqing @ 2021-09-25 12:46 UTC (permalink / raw)
To: caihuoqing
Cc: Stanislav Yakovlev, Kalle Valo, David S. Miller, Jakub Kicinski,
linux-wireless, netdev, linux-kernel
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(-)
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;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipw2200: Fix a function name in print messages
2021-09-25 12:46 [PATCH] ipw2200: Fix a function name in print messages Cai Huoqing
@ 2021-09-28 8:24 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-09-28 8:24 UTC (permalink / raw)
To: Cai Huoqing
Cc: caihuoqing, Stanislav Yakovlev, David S. Miller, Jakub Kicinski,
linux-wireless, netdev, linux-kernel
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
--
https://patchwork.kernel.org/project/linux-wireless/patch/20210925124621.197-1-caihuoqing@baidu.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-28 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25 12:46 [PATCH] ipw2200: Fix a function name in print messages Cai Huoqing
2021-09-28 8:24 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).