net: ethernet: davinci_emac: Fix printing of base address

Use %pa which is the correct formatter to print a physical address,
instead of %p which is just a pointer.

Fixes: a6286ee630 ("net: Add TI DaVinci EMAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2018-05-21 11:45:54 -07:00 committed by David S. Miller
parent bf2ce3fdf3
commit 5a04e8f81a
1 changed files with 2 additions and 2 deletions

View File

@ -1930,8 +1930,8 @@ static int davinci_emac_probe(struct platform_device *pdev)
if (netif_msg_probe(priv)) {
dev_notice(&pdev->dev, "DaVinci EMAC Probe found device "
"(regs: %p, irq: %d)\n",
(void *)priv->emac_base_phys, ndev->irq);
"(regs: %pa, irq: %d)\n",
&priv->emac_base_phys, ndev->irq);
}
pm_runtime_put(&pdev->dev);