projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4867d58
)
mtd: sharpsl: use dev_err() instead of printk()
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 26 Dec 2013 03:32:29 +0000
(12:32 +0900)
committer
Brian 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/sharpsl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/sharpsl.c
b/drivers/mtd/nand/sharpsl.c
index 61a85abfdc418c6f822e3548aacf8ebea54bd26e..e81059b58382f23af69848211415c4095ea36edf 100644
(file)
--- 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;
}