0013-mtd-spi-nor-Fix-error-message-with-unrecognized-JEDE.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 14b9112f7d20455ffef7d796317e7d08c6545b41 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 13/33] mtd: spi-nor: Fix error message with unrecognized JEDEC
  5. The error message was:
  6. m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 0, 0
  7. The new error message:
  8. m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
  9. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
  10. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  11. ---
  12. drivers/mtd/spi-nor/spi-nor.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
  15. index c5bc927..3a50eea 100644
  16. --- a/drivers/mtd/spi-nor/spi-nor.c
  17. +++ b/drivers/mtd/spi-nor/spi-nor.c
  18. @@ -890,7 +890,7 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor)
  19. return &spi_nor_ids[tmp];
  20. }
  21. }
  22. - dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %2x, %2x\n",
  23. + dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
  24. id[0], id[1], id[2]);
  25. return ERR_PTR(-ENODEV);
  26. }
  27. --
  28. 2.8.1