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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Nov 13 13:59:06 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cb85b7e7a0605de2de139d2c293ff10affc8a81c
Commit:     cb85b7e7a0605de2de139d2c293ff10affc8a81c
Parent:     9211439b8a933a624d770113d0e0aa742db2ec67
Author:     Mark Brown <broonie at linaro.org>
AuthorDate: Wed Oct 16 13:16:14 2013 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Nov 7 00:08:55 2013 -0800

    mtd: dataflash: Say if we find a device we don't support
    
    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 at linaro.org>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/devices/mtd_dataflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}



More information about the linux-mtd-cvs mailing list