Commit 5cc17d7e authored by Wolfram Sang's avatar Wolfram Sang Committed by Grant Likely

spi/mpc52xx: replace printk with dev_err

To easily identify which device has problems.
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 1a8d3b77
...@@ -473,7 +473,7 @@ static int __init mpc52xx_psc_spi_of_probe(struct of_device *op, ...@@ -473,7 +473,7 @@ static int __init mpc52xx_psc_spi_of_probe(struct of_device *op,
regaddr_p = of_get_address(op->node, 0, &size64, NULL); regaddr_p = of_get_address(op->node, 0, &size64, NULL);
if (!regaddr_p) { if (!regaddr_p) {
printk(KERN_ERR "Invalid PSC address\n"); dev_err(&op->dev, "Invalid PSC address\n");
return -EINVAL; return -EINVAL;
} }
regaddr64 = of_translate_address(op->node, regaddr_p); regaddr64 = of_translate_address(op->node, regaddr_p);
...@@ -484,8 +484,7 @@ static int __init mpc52xx_psc_spi_of_probe(struct of_device *op, ...@@ -484,8 +484,7 @@ static int __init mpc52xx_psc_spi_of_probe(struct of_device *op,
psc_nump = of_get_property(op->node, "cell-index", NULL); psc_nump = of_get_property(op->node, "cell-index", NULL);
if (!psc_nump || *psc_nump > 5) { if (!psc_nump || *psc_nump > 5) {
printk(KERN_ERR "mpc52xx_psc_spi: Device node %s has invalid " dev_err(&op->dev, "Invalid cell-index property\n");
"cell-index property\n", op->node->full_name);
return -EINVAL; return -EINVAL;
} }
id = *psc_nump + 1; id = *psc_nump + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment