From: Sachin Kamat Date: Tue, 8 Oct 2013 10:08:08 +0000 (+0530) Subject: mtd: socrates_nand: Use dev_err instead of printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5422933d58c28ebc67c7425f20e85ef27b730188;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git mtd: socrates_nand: Use dev_err instead of printk dev_err is preferred to printk. Signed-off-by: Sachin Kamat Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index e77da7efa200..9a9fa4949b4f 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c @@ -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; }