[PATCH 08/26] spi: Tidy up get/set of device node

Simon Glass sjg at chromium.org
Mon Dec 28 17:26:36 CET 2020


This code is a bit odd in that it only reads and updates the livetree
version of the device ofnode. This means it won't work with flattree.
Update the code to work as it was presumably intended.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/mtd/nand/spi/core.c |  2 +-
 include/linux/mtd/mtd.h     |  9 ++++-----
 include/linux/mtd/nand.h    | 14 ++++++++++++++
 include/linux/mtd/spi-nor.h |  2 ++
 include/linux/mtd/spinand.h | 15 +++++++++++++++
 5 files changed, 36 insertions(+), 6 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list