提交 5422933d 编写于 作者: S Sachin Kamat 提交者: Brian Norris

mtd: socrates_nand: Use dev_err instead of printk

dev_err is preferred to printk.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 cf3a9b56
......@@ -155,7 +155,7 @@ static int socrates_nand_probe(struct platform_device *ofdev)
host->io_base = of_iomap(ofdev->dev.of_node, 0);
if (host->io_base == NULL) {
printk(KERN_ERR "socrates_nand: ioremap failed\n");
dev_err(&ofdev->dev, "ioremap failed\n");
return -EIO;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册