diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-15 13:16:49 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-27 19:05:13 +0400 |
commit | 30db2bd1c88cedf73e1eb753225249130cc00970 (patch) | |
tree | d42bcb1568650814e5ac21df6d55b24dcee040a8 /drivers/gpio | |
parent | f39f54af032ce900815d0d718df5f1717eed50fe (diff) | |
download | linux-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.c | 3 |
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; } |