projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f39f54a
)
gpio: mc33880: use dev_err() instead of printk()
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 15 Mar 2013 09:16:49 +0000
(18:16 +0900)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 27 Mar 2013 15:05:13 +0000
(16:05 +0100)
dev_err() is more preferred than printk().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mc33880.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mc33880.c
b/drivers/gpio/gpio-mc33880.c
index b16148913a78201f0fc46e5b5f898d40b61dd0f6..33958799bd3db407efe480d399740be03e51f079 100644
(file)
--- a/
drivers/gpio/gpio-mc33880.c
+++ b/
drivers/gpio/gpio-mc33880.c
@@
-130,7
+130,8
@@
static int mc33880_probe(struct spi_device *spi)
ret = mc33880_write_config(mc);
if (ret) {
- printk(KERN_ERR "Failed writing to " DRIVER_NAME ": %d\n", ret);
+ dev_err(&spi->dev, "Failed writing to " DRIVER_NAME ": %d\n",
+ ret);
goto exit_destroy;
}