From: Jingoo Han Date: Thu, 26 Dec 2013 03:32:29 +0000 (+0900) Subject: mtd: sharpsl: use dev_err() instead of printk() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bb13bec74efd279942f8cf53fc86fb671acc5d9d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 61a85abfdc41..e81059b58382 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c @@ -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; }