]> git.dujemihanovic.xyz Git - u-boot.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)
commit6dcc2819ae984ddbcdd63cee0a4319f150f46a9f
tree55ca9ff631fd605f14e1595779f69b02e7377939
parent8985e1cf91db9826508a48ceb0ae764a81ea10c4
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