Commit 5422933d authored by Sachin Kamat's avatar Sachin Kamat Committed by Brian Norris

mtd: socrates_nand: Use dev_err instead of printk

dev_err is preferred to printk.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent cf3a9b56
...@@ -155,7 +155,7 @@ static int socrates_nand_probe(struct platform_device *ofdev) ...@@ -155,7 +155,7 @@ static int socrates_nand_probe(struct platform_device *ofdev)
host->io_base = of_iomap(ofdev->dev.of_node, 0); host->io_base = of_iomap(ofdev->dev.of_node, 0);
if (host->io_base == NULL) { if (host->io_base == NULL) {
printk(KERN_ERR "socrates_nand: ioremap failed\n"); dev_err(&ofdev->dev, "ioremap failed\n");
return -EIO; return -EIO;
} }
......
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