]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nand: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:44:44 +0000 (10:44 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:52:44 +0000 (08:52 -0400)
commit1b59a7b3378ac711b5aac56e328ee18ff158254c
tree55ca9ff631fd605f14e1595779f69b02e7377939
parent14103d80109f9f01cf5e472ab2b35a1580956113
mtd: spi-nand: Fix not calling dev_err with a device

Get it from spinand->slave->dev. Another option would be to use
spinand_to_mtd(spinand)->dev, but this is what the existing code uses.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/mtd/nand/spi/core.c