mtd: atmel_nand: use dev_err() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 03:30:58 +0000 (12:30 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 7 Jan 2014 18:07:03 +0000 (10:07 -0800)
Use dev_err() instead of printk() to provide a better message
to userspace.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c

index e633c4454bad417a320bfe8b9f7bfc3f53c0c0a7..c36e9b84487cd36b55d96efd1d17c6db9494c0fc 100644 (file)
@@ -2060,14 +2060,14 @@ static int atmel_nand_probe(struct platform_device *pdev)
                }
 
                if (gpio_get_value(host->board.det_pin)) {
-                       printk(KERN_INFO "No SmartMedia card inserted.\n");
+                       dev_info(&pdev->dev, "No SmartMedia card inserted.\n");
                        res = -ENXIO;
                        goto err_no_card;
                }
        }
 
        if (host->board.on_flash_bbt || on_flash_bbt) {
-               printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
+               dev_info(&pdev->dev, "Use On Flash BBT\n");
                nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
        }