diff mbox

mtd: dataflash: Say if we find a device we don't support

Message ID 1381925774-10301-1-git-send-email-broonie@kernel.org
State Accepted
Commit cb85b7e7a0605de2de139d2c293ff10affc8a81c
Headers show

Commit Message

Mark Brown Oct. 16, 2013, 12:16 p.m. UTC
From: Mark Brown <broonie@linaro.org>

Ensure that the error message if we identify a flash we don't know how to
talk to is displayed on the console in order to aid diagnostics. While
we're at convert the message to use dev_info() rather than our hand rolled
version of it for consistency.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 drivers/mtd/devices/mtd_dataflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Brian Norris Nov. 7, 2013, 8:14 a.m. UTC | #1
On Wed, Oct 16, 2013 at 01:16:14PM +0100, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
> 
> Ensure that the error message if we identify a flash we don't know how to
> talk to is displayed on the console in order to aid diagnostics. While
> we're at convert the message to use dev_info() rather than our hand rolled
> version of it for consistency.
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>

Pushed to l2-mtd.git. Thanks!

Brian
diff mbox

Patch

diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index 1cfbfcf..4a47b02 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -879,7 +879,7 @@  static int dataflash_probe(struct spi_device *spi)
 		break;
 	/* obsolete AT45DB1282 not (yet?) supported */
 	default:
-		pr_debug("%s: unsupported device (%x)\n", dev_name(&spi->dev),
+		dev_info(&spi->dev, "unsupported device (%x)\n",
 				status & 0x3c);
 		status = -ENODEV;
 	}