Commit 4867d582 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris

mtd: orion_nand: use dev_err() instead of printk()

Use dev_err() instead of printk() to provide a better message
to userspace.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 67b19a63
...@@ -100,7 +100,7 @@ static int __init orion_nand_probe(struct platform_device *pdev) ...@@ -100,7 +100,7 @@ static int __init orion_nand_probe(struct platform_device *pdev)
io_base = ioremap(res->start, resource_size(res)); io_base = ioremap(res->start, resource_size(res));
if (!io_base) { if (!io_base) {
printk(KERN_ERR "orion_nand: ioremap failed\n"); dev_err(&pdev->dev, "ioremap failed\n");
ret = -EIO; ret = -EIO;
goto no_res; goto no_res;
} }
......
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