瀏覽代碼

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>
Jingoo Han 12 年之前
父節點
當前提交
30db2bd1c8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/gpio/gpio-mc33880.c

+ 2 - 1
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;
 	}