summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorFlavio Suligoi <f.suligoi@asem.it>2019-05-24 16:45:45 +0200
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-06-07 07:49:41 +0300
commit92aae4ce84275036977468379484012545afb31a (patch)
treecda301937cc463d459abe1484c21b6a29798f1bd /drivers/mtd
parent21ed90acd1786880129eeae9d6718b5fc8663c36 (diff)
downloadlinux-92aae4ce84275036977468379484012545afb31a.tar.gz
mtd: spi-nor: change "error reading JEDEC id" from dbg to err
In case of SPI error during the reading of the nor Id, the probe fails without any error message related to the JEDEC Id reading procedure. Signed-off-by: Flavio Suligoi <f.suligoi@asem.it> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index c8a965859d7b..c0a8837c0575 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -2065,7 +2065,7 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor)
tmp = nor->read_reg(nor, SPINOR_OP_RDID, id, SPI_NOR_MAX_ID_LEN);
if (tmp < 0) {
- dev_dbg(nor->dev, "error %d reading JEDEC ID\n", tmp);
+ dev_err(nor->dev, "error %d reading JEDEC ID\n", tmp);
return ERR_PTR(tmp);
}