]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi: Fix logging in spi-nor-tiny
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:44:43 +0000 (10:44 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:52:41 +0000 (08:52 -0400)
commit8985e1cf91db9826508a48ceb0ae764a81ea10c4
treef39b3b9da5192bd766af2c918789d0a9d1607435
parentc64633644edfeb348b8c79a66268ec805f4280c2
mtd: spi: Fix logging in spi-nor-tiny

This fixes dev_xxx() not always being called with a device. In
spi_nor_reg_read, a the slave device may not always be available, so we use
bus and cs instead.

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