Skip to content

Commit

Permalink
gpio: mc33880: use dev_err() instead of printk()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Linus Walleij committed Mar 27, 2013
1 parent f39f54a commit 30db2bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-mc33880.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 30db2bd

Please sign in to comment.