summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-26 12:32:29 +0900
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 10:07:31 -0800
commitbb13bec74efd279942f8cf53fc86fb671acc5d9d (patch)
treecd479c3f12a7d8c5861cdae3b8d0097ae604b286 /drivers/mtd
parent4867d582d56a0cb7041779d781b98e548fb018e3 (diff)
downloadop-kernel-dev-bb13bec74efd279942f8cf53fc86fb671acc5d9d.zip
op-kernel-dev-bb13bec74efd279942f8cf53fc86fb671acc5d9d.tar.gz
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/sharpsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c
index 61a85ab..e81059b 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;
}
OpenPOWER on IntegriCloud