summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-15 13:16:49 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 19:05:13 +0400
commit30db2bd1c88cedf73e1eb753225249130cc00970 (patch)
treed42bcb1568650814e5ac21df6d55b24dcee040a8 /drivers/gpio
parentf39f54af032ce900815d0d718df5f1717eed50fe (diff)
downloadlinux-30db2bd1c88cedf73e1eb753225249130cc00970.tar.xz
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>
Diffstat (limited to 'drivers/gpio')
-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;
}