Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1295f970 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarJosh Wu <josh.wu@atmel.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent b5d306c0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}