bnx2: Fix an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 2 Mar 2022 20:21:15 +0000 (21:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 14:48:40 +0000 (14:48 +0000)
Fix an error message and report the correct failing function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c

index e20aafe..b97ed9b 100644 (file)
@@ -8216,7 +8216,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
                rc = dma_set_coherent_mask(&pdev->dev, persist_dma_mask);
                if (rc) {
                        dev_err(&pdev->dev,
-                               "pci_set_consistent_dma_mask failed, aborting\n");
+                               "dma_set_coherent_mask failed, aborting\n");
                        goto err_out_unmap;
                }
        } else if ((rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) != 0) {