]> git.baikalelectronics.ru Git - uboot.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)
commit14103d80109f9f01cf5e472ab2b35a1580956113
treef39b3b9da5192bd766af2c918789d0a9d1607435
parent09303ce78565342c580fd1a2f2e83892e93e3745
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