1083-mtd-spi-nor-Fix-error-message-with-unrecognized-JEDE.patch 996 B

12345678910111213141516171819202122232425262728293031
  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. The error message was:
  7. m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 0, 0
  8. The new error message:
  9. m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
  10. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
  11. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  12. ---
  13. drivers/mtd/spi-nor/spi-nor.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/mtd/spi-nor/spi-nor.c
  16. +++ b/drivers/mtd/spi-nor/spi-nor.c
  17. @@ -902,7 +902,7 @@ static const struct flash_info *spi_nor_
  18. return &spi_nor_ids[tmp];
  19. }
  20. }
  21. - dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %2x, %2x\n",
  22. + dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
  23. id[0], id[1], id[2]);
  24. return ERR_PTR(-ENODEV);
  25. }