mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
mtd: sharpsl: 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
4867d582d5
commit
bb13bec74e
@ -134,7 +134,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev)
|
||||
/* map physical address */
|
||||
sharpsl->io = ioremap(r->start, resource_size(r));
|
||||
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;
|
||||
goto err_ioremap;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user