mtd: dataflash: Say if we find a device we don't support
authorMark Brown <broonie@linaro.org>
Wed, 16 Oct 2013 12:16:14 +0000 (13:16 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 08:08:55 +0000 (00:08 -0800)
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>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mtd_dataflash.c

index 1cfbfcfb6e191f7a41db7b0e696b7d082bf20788..4a47b0266d4e587761a2db5c1cd2e1613fc710bc 100644 (file)
@@ -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;
        }