stmmac: pci: convert to use dev_* macros
Instead of pr_* macros let's use dev_* macros which provide device name. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2a3e8e93bd
commit
7627fc074b
|
@ -78,8 +78,8 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
|
||||||
/* Enable pci device */
|
/* Enable pci device */
|
||||||
ret = pcim_enable_device(pdev);
|
ret = pcim_enable_device(pdev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("%s : ERROR: failed to enable %s device\n", __func__,
|
dev_err(&pdev->dev, "%s: ERROR: failed to enable device\n",
|
||||||
pci_name(pdev));
|
__func__);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
|
||||||
priv = stmmac_dvr_probe(&pdev->dev, &plat_dat,
|
priv = stmmac_dvr_probe(&pdev->dev, &plat_dat,
|
||||||
pcim_iomap_table(pdev)[i]);
|
pcim_iomap_table(pdev)[i]);
|
||||||
if (IS_ERR(priv)) {
|
if (IS_ERR(priv)) {
|
||||||
pr_err("%s: main driver probe failed", __func__);
|
dev_err(&pdev->dev, "%s: main driver probe failed\n", __func__);
|
||||||
return PTR_ERR(priv);
|
return PTR_ERR(priv);
|
||||||
}
|
}
|
||||||
priv->dev->irq = pdev->irq;
|
priv->dev->irq = pdev->irq;
|
||||||
|
@ -108,7 +108,7 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
|
||||||
|
|
||||||
pci_set_drvdata(pdev, priv->dev);
|
pci_set_drvdata(pdev, priv->dev);
|
||||||
|
|
||||||
pr_debug("STMMAC platform driver registration completed");
|
dev_dbg(&pdev->dev, "STMMAC PCI driver registration completed\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue