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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
67b19a631e
commit
4867d582d5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue