aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-25 22:32:29 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:07:31 -0500
commitbb13bec74efd279942f8cf53fc86fb671acc5d9d (patch)
treecd479c3f12a7d8c5861cdae3b8d0097ae604b286 /drivers/mtd
parent4867d582d56a0cb7041779d781b98e548fb018e3 (diff)
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 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)
134 /* map physical address */ 134 /* map physical address */
135 sharpsl->io = ioremap(r->start, resource_size(r)); 135 sharpsl->io = ioremap(r->start, resource_size(r));
136 if (!sharpsl->io) { 136 if (!sharpsl->io) {
137 printk("ioremap to access Sharp SL NAND chip failed\n"); 137 dev_err(&pdev->dev, "ioremap to access Sharp SL NAND chip failed\n");
138 err = -EIO; 138 err = -EIO;
139 goto err_ioremap; 139 goto err_ioremap;
140 } 140 }