aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mc33880.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-15 05:16:49 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 11:05:13 -0400
commit30db2bd1c88cedf73e1eb753225249130cc00970 (patch)
treed42bcb1568650814e5ac21df6d55b24dcee040a8 /drivers/gpio/gpio-mc33880.c
parentf39f54af032ce900815d0d718df5f1717eed50fe (diff)
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/gpio-mc33880.c')
-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)
130 ret = mc33880_write_config(mc); 130 ret = mc33880_write_config(mc);
131 131
132 if (ret) { 132 if (ret) {
133 printk(KERN_ERR "Failed writing to " DRIVER_NAME ": %d\n", ret); 133 dev_err(&spi->dev, "Failed writing to " DRIVER_NAME ": %d\n",
134 ret);
134 goto exit_destroy; 135 goto exit_destroy;
135 } 136 }
136 137