gpio: mc33880: use dev_err() instead of printk()
PATCH 1/1 gpio: mc33880: use dev_err() instead of printk()
dev_err() is more preferred than printk().
Signed-off-by Jingoo Han <[email protected]>
--- drivers/gpio/gpio-mc33880.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/gpio/gpio-mc33880.c +2 -1
@@ -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; }
Signature · 1 line
1.7.2.5
Quoted 3 lines · Jingoo Han
dev_err()is more preferred thanprintk().Signed-off-by Jingoo Han <[email protected]>
Patch applied.
Thanks!
Linus Walleij