Skip to contentSkip to conversation

gpio: mc33880: use dev_err() instead of printk()

PATCH In review Jingoo Han 2 participants 2 messages Mar 15, 2013 – Mar 27, 2013 GPIO

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 gpio: mc33880: use dev_err() instead of printk()

dev_err() is more preferred than printk().

---
 drivers/gpio/gpio-mc33880.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/gpio/gpio-mc33880.c +2 -1
index b161489..3395879 100644
@@ -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