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

Usually the device is gotten from sunxi_nfc. This is a struct device and
not a struct udevice, but the whole driver seems to be written wihout DM
anyway...

In a few instances, this patch modifies functions to take an nfc to log
with. In once instance we use mtd_info's device since there is no nfc.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/mtd/nand/raw/sunxi_nand.c