mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
9211439b8a
commit
cb85b7e7a0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user