1074-mtd-nand-spi-nor-assign-MTD-of_node.patch 971 B

12345678910111213141516171819202122232425262728293031
  1. From f560fdb9d71aaf3adc54341a1650577c78495df9 Mon Sep 17 00:00:00 2001
  2. From: Brian Norris <computersforpeace@gmail.com>
  3. Date: Fri, 30 Oct 2015 20:33:22 -0700
  4. Subject: [PATCH 074/113] mtd: {nand,spi-nor}: assign MTD of_node
  5. We should pass along our flash DT node to the MTD layer, so it can set
  6. up ofpart for us.
  7. cherry-pick{
  8. remove the code:
  9. drivers/mtd/nand/nand_base.c | 3 +
  10. commit:3e63b26bdd4069c3df2cd7ce7217a21d06801b41
  11. }
  12. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  13. Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  14. Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
  15. ---
  16. drivers/mtd/spi-nor/spi-nor.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. --- a/drivers/mtd/spi-nor/spi-nor.c
  19. +++ b/drivers/mtd/spi-nor/spi-nor.c
  20. @@ -1234,6 +1234,7 @@ int spi_nor_scan(struct spi_nor *nor, co
  21. mtd->flags |= MTD_NO_ERASE;
  22. mtd->dev.parent = dev;
  23. + mtd_set_of_node(mtd, np);
  24. nor->page_size = info->page_size;
  25. mtd->writebufsize = nor->page_size;