]> git.dujemihanovic.xyz Git - u-boot.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)
commit75eed1a113a29436f90a838b55f92209a126ea26
tree38fbe01d5bdea08f717f5b2be2c35cca7c329763
parent661c98121d49c643a1b7b4427d152e2586a220b2
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