mtd: orion_nand: use dev_err() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 03:31:52 +0000 (12:31 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 7 Jan 2014 18:07:31 +0000 (10:07 -0800)
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>
drivers/mtd/nand/orion_nand.c

index a6a4a20f6069d8e0c06969a020a3530211f9e1ea..dd7fe817eafb319ebc9ae92b2cbbac8613b38add 100644 (file)
@@ -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;
        }