summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cadence
diff options
context:
space:
mode:
authorAndy Shevchenko2015-07-24 20:24:01 +0200
committerDavid S. Miller2015-07-27 10:10:29 +0200
commita35919e174350d3e236ea5f179177396e87b6894 (patch)
tree6bc45ed3070d9b0921b6c9fe3c20ffe87033fac5 /drivers/net/ethernet/cadence
parentnet/macb: check if macb_config present (diff)
downloadkernel-qcow2-linux-a35919e174350d3e236ea5f179177396e87b6894.tar.gz
kernel-qcow2-linux-a35919e174350d3e236ea5f179177396e87b6894.tar.xz
kernel-qcow2-linux-a35919e174350d3e236ea5f179177396e87b6894.zip
net/macb: use dev_*() when netdev is not yet registered
To avoid messages like macb macb.0 (unnamed net_device) (uninitialized): Cadence caps 0x00000000 macb macb.0 (unnamed net_device) (uninitialized): invalid hw address, using random let's use dev_*() macros. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r--drivers/net/ethernet/cadence/macb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 6433232a1a2f..c4ffab9af563 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -211,7 +211,7 @@ static void macb_get_hwaddr(struct macb *bp)
}
}
- netdev_info(bp->dev, "invalid hw address, using random\n");
+ dev_info(&bp->pdev->dev, "invalid hw address, using random\n");
eth_hw_addr_random(bp->dev);
}
@@ -2240,7 +2240,7 @@ static void macb_configure_caps(struct macb *bp, const struct macb_config *dt_co
bp->caps |= MACB_CAPS_FIFO_MODE;
}
- netdev_dbg(bp->dev, "Cadence caps 0x%08x\n", bp->caps);
+ dev_dbg(&bp->pdev->dev, "Cadence caps 0x%08x\n", bp->caps);
}
static void macb_probe_queues(void __iomem *mem,