mtd: sharpsl: 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=bb13bec74efd279942f8cf53fc86fb671acc5d9d
Commit:     bb13bec74efd279942f8cf53fc86fb671acc5d9d
Parent:     4867d582d56a0cb7041779d781b98e548fb018e3
Author:     Jingoo Han <jg1.han at samsung.com>
AuthorDate: Thu Dec 26 12:32:29 2013 +0900
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:07:31 2014 -0800

    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 at samsung.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/sharpsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}



More information about the linux-mtd-cvs mailing list