Skip to content

Commit c451113

Browse files
hormsdavem330
authored andcommitted
ravb: use pdev rather than ndev for error messages
This corrects what appear to be typos, making the code consistent with itself, and allowing meaningful prefixes to be displayed with the errors in question. Before: (null): failed to initialize MDIO (null): Cannot allocate desc base address table (size 176 bytes) After: ravb e6800000.ethernet: failed to initialize MDIO ravb e6800000.ethernet: Cannot allocate desc base address table (size 176 bytes) Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9e17f8a commit c451113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ static int ravb_probe(struct platform_device *pdev)
17651765
priv->desc_bat = dma_alloc_coherent(ndev->dev.parent, priv->desc_bat_size,
17661766
&priv->desc_bat_dma, GFP_KERNEL);
17671767
if (!priv->desc_bat) {
1768-
dev_err(&ndev->dev,
1768+
dev_err(&pdev->dev,
17691769
"Cannot allocate desc base address table (size %d bytes)\n",
17701770
priv->desc_bat_size);
17711771
error = -ENOMEM;
@@ -1792,7 +1792,7 @@ static int ravb_probe(struct platform_device *pdev)
17921792
/* MDIO bus init */
17931793
error = ravb_mdio_init(priv);
17941794
if (error) {
1795-
dev_err(&ndev->dev, "failed to initialize MDIO\n");
1795+
dev_err(&pdev->dev, "failed to initialize MDIO\n");
17961796
goto out_dma_free;
17971797
}
17981798

0 commit comments

Comments
 (0)