Commit bb13bec7 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris

mtd: sharpsl: 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 4867d582
...@@ -134,7 +134,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev) ...@@ -134,7 +134,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
/* map physical address */ /* map physical address */
sharpsl->io = ioremap(r->start, resource_size(r)); sharpsl->io = ioremap(r->start, resource_size(r));
if (!sharpsl->io) { if (!sharpsl->io) {
printk("ioremap to access Sharp SL NAND chip failed\n"); dev_err(&pdev->dev, "ioremap to access Sharp SL NAND chip failed\n");
err = -EIO; err = -EIO;
goto err_ioremap; goto err_ioremap;
} }
......
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