Skip to contentSkip to conversation

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

PATCH Applied Mark Brown 2 participants 2 messages Oct 16, 2013 – Nov 7, 2013 Memory technology devices (MTD)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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

From: Mark Brown <[email protected]>

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.

---
 drivers/mtd/devices/mtd_dataflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/devices/mtd_dataflash.c +1 -1
index 1cfbfcf..4a47b02 100644
@@ -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;
 	}
Signature · 1 line
1.8.4.rc3
Applied
#1 lore raw
Quoted 8 lines · Mark Brown

From: Mark Brown <[email protected]>

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.

Pushed to l2-mtd.git. Thanks!

Brian