summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-15 10:16:49 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 16:05:13 +0100
commit30db2bd1c88cedf73e1eb753225249130cc00970 (patch)
treed42bcb1568650814e5ac21df6d55b24dcee040a8
parentgpio: pcf857x: use devm_kzalloc() (diff)
downloadlinux-30db2bd1c88cedf73e1eb753225249130cc00970.tar.xz
linux-30db2bd1c88cedf73e1eb753225249130cc00970.zip
gpio: mc33880: use dev_err() instead of printk()
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>
-rw-r--r--drivers/gpio/gpio-mc33880.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mc33880.c b/drivers/gpio/gpio-mc33880.c
index b16148913a78..33958799bd3d 100644
--- 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;
}