aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-25 22:30:58 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:07:03 -0500
commit1295f97002bd8c4fd7d927607dcd4657d4727d08 (patch)
treea5577ac1e6c269d3144dd1550730eea8a29e9a54 /drivers
parentb5d306c0349020a89322514ec010a9bf70d00b9b (diff)
mtd: atmel_nand: use dev_err() instead of printk()
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/atmel_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index e633c4454bad..c36e9b84487c 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -2060,14 +2060,14 @@ static int atmel_nand_probe(struct platform_device *pdev)
2060 } 2060 }
2061 2061
2062 if (gpio_get_value(host->board.det_pin)) { 2062 if (gpio_get_value(host->board.det_pin)) {
2063 printk(KERN_INFO "No SmartMedia card inserted.\n"); 2063 dev_info(&pdev->dev, "No SmartMedia card inserted.\n");
2064 res = -ENXIO; 2064 res = -ENXIO;
2065 goto err_no_card; 2065 goto err_no_card;
2066 } 2066 }
2067 } 2067 }
2068 2068
2069 if (host->board.on_flash_bbt || on_flash_bbt) { 2069 if (host->board.on_flash_bbt || on_flash_bbt) {
2070 printk(KERN_INFO "atmel_nand: Use On Flash BBT\n"); 2070 dev_info(&pdev->dev, "Use On Flash BBT\n");
2071 nand_chip->bbt_options |= NAND_BBT_USE_FLASH; 2071 nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
2072 } 2072 }
2073 2073