]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ravb: use pdev rather than ndev for error messages
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 2 Nov 2015 01:40:17 +0000 (10:40 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2015 21:32:37 +0000 (16:32 -0500)
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>
drivers/net/ethernet/renesas/ravb_main.c

index 8cc5ec5ed19a59c9db5b77a2f2ea67c13fbd4247..aa7b2083cb539c15c8b831e4c0703ab16375a0ae 100644 (file)
@@ -1765,7 +1765,7 @@ static int ravb_probe(struct platform_device *pdev)
        priv->desc_bat = dma_alloc_coherent(ndev->dev.parent, priv->desc_bat_size,
                                            &priv->desc_bat_dma, GFP_KERNEL);
        if (!priv->desc_bat) {
-               dev_err(&ndev->dev,
+               dev_err(&pdev->dev,
                        "Cannot allocate desc base address table (size %d bytes)\n",
                        priv->desc_bat_size);
                error = -ENOMEM;
@@ -1792,7 +1792,7 @@ static int ravb_probe(struct platform_device *pdev)
        /* MDIO bus init */
        error = ravb_mdio_init(priv);
        if (error) {
-               dev_err(&ndev->dev, "failed to initialize MDIO\n");
+               dev_err(&pdev->dev, "failed to initialize MDIO\n");
                goto out_dma_free;
        }