diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-08 06:08:08 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2013-11-07 02:32:51 -0500 |
commit | 5422933d58c28ebc67c7425f20e85ef27b730188 (patch) | |
tree | 489abd44434094234227ff5f48628ec7ad41e993 /drivers/mtd/nand | |
parent | cf3a9b56a128ec8a1631c29aacb8cf19b55ea73d (diff) |
mtd: socrates_nand: Use dev_err instead of printk
dev_err is preferred to printk.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/socrates_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
155 | 155 | ||
156 | host->io_base = of_iomap(ofdev->dev.of_node, 0); | 156 | host->io_base = of_iomap(ofdev->dev.of_node, 0); |
157 | if (host->io_base == NULL) { | 157 | if (host->io_base == NULL) { |
158 | printk(KERN_ERR "socrates_nand: ioremap failed\n"); | 158 | dev_err(&ofdev->dev, "ioremap failed\n"); |
159 | return -EIO; | 159 | return -EIO; |
160 | } | 160 | } |
161 | 161 | ||