generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 1083-mtd-spi-nor-Fix-error-message-with-unrecognized-JEDE.patch
1 From 30e609daed95664824e95344e85c7eaedd1bfcf3 Mon Sep 17 00:00:00 2001
2 From: Ricardo Ribalda <ricardo.ribalda@gmail.com>
3 Date: Mon, 30 Nov 2015 20:41:17 +0100
4 Subject: [PATCH 083/113] mtd: spi-nor: Fix error message with unrecognized
5 JEDEC
6
7 The error message was:
8
9 m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 0, 0
10
11 The new error message:
12
13 m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
14
15 Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
16 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
17 ---
18 drivers/mtd/spi-nor/spi-nor.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/mtd/spi-nor/spi-nor.c
22 +++ b/drivers/mtd/spi-nor/spi-nor.c
23 @@ -896,7 +896,7 @@ static const struct flash_info *spi_nor_
24 return &spi_nor_ids[tmp];
25 }
26 }
27 - dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %2x, %2x\n",
28 + dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
29 id[0], id[1], id[2]);
30 return ERR_PTR(-ENODEV);
31 }