mtd: socrates_nand: Use dev_err instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 8 Oct 2013 10:08:08 +0000 (15:38 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:51 +0000 (23:32 -0800)
dev_err is preferred to printk.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/socrates_nand.c

index e77da7efa200cb50d4c351bf93855dbf56c1f9b0..9a9fa4949b4f8b62d17e2cb43eac7ea909ba0964 100644 (file)
@@ -155,7 +155,7 @@ static int socrates_nand_probe(struct platform_device *ofdev)
 
        host->io_base = of_iomap(ofdev->dev.of_node, 0);
        if (host->io_base == NULL) {
-               printk(KERN_ERR "socrates_nand: ioremap failed\n");
+               dev_err(&ofdev->dev, "ioremap failed\n");
                return -EIO;
        }