aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-25 22:31:52 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:07:31 -0500
commit4867d582d56a0cb7041779d781b98e548fb018e3 (patch)
tree5341f7169d95b4c94400fd54a7b22b0d42d05393 /drivers/mtd/nand
parent67b19a631eb0a21584ff179f93c0dd93f94f8ce0 (diff)
mtd: orion_nand: 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/nand')
-rw-r--r--drivers/mtd/nand/orion_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index a6a4a20f6069..dd7fe817eafb 100644
--- a/drivers/mtd/nand/orion_nand.c
+++ b/drivers/mtd/nand/orion_nand.c
@@ -100,7 +100,7 @@ static int __init orion_nand_probe(struct platform_device *pdev)
100 100
101 io_base = ioremap(res->start, resource_size(res)); 101 io_base = ioremap(res->start, resource_size(res));
102 if (!io_base) { 102 if (!io_base) {
103 printk(KERN_ERR "orion_nand: ioremap failed\n"); 103 dev_err(&pdev->dev, "ioremap failed\n");
104 ret = -EIO; 104 ret = -EIO;
105 goto no_res; 105 goto no_res;
106 } 106 }