mtd: orion_nand: use dev_err() instead of printk()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:06 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4867d582d56a0cb7041779d781b98e548fb018e3
Commit: 4867d582d56a0cb7041779d781b98e548fb018e3
Parent: 67b19a631eb0a21584ff179f93c0dd93f94f8ce0
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:31:52 2013 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:07:31 2014 -0800
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 at samsung.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/orion_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the linux-mtd-cvs
mailing list