Patchwork [V2,3/4] mtd: orion_nand: use dev_err() instead of printk()

login
register
mail settings
Submitter Jingoo Han
Date Dec. 26, 2013, 3:31 a.m.
Message ID <009e01cf01eb$048cc370$0da64a50$%han@samsung.com>
Download mbox | patch
Permalink /patch/305187/
State Accepted
Commit 4867d582d56a0cb7041779d781b98e548fb018e3
Headers show

Comments

Jingoo Han - Dec. 26, 2013, 3:31 a.m.
Use dev_err() instead of printk() to provide a better message
to userspace.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
Change since v1
- Remove the site-specific OOM messages.

 drivers/mtd/nand/orion_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index a6a4a20..dd7fe81 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)
 
 	io_base = ioremap(res->start, resource_size(res));
 	if (!io_base) {
-		printk(KERN_ERR "orion_nand: ioremap failed\n");
+		dev_err(&pdev->dev, "ioremap failed\n");
 		ret = -EIO;
 		goto no_res;
 	}