mtd: spi-nor: core: Return error code from set_4byte_addr_mode()
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Mon, 25 Jul 2022 09:25:02 +0000 (12:25 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 28 Jul 2022 02:11:56 +0000 (05:11 +0300)
commit08412e72afba3a2daef3e7f3378c3753255a0017
tree1b68d7dbb4c120813fcd07bfc96e641646cb7493
parent47c6f8a67f2ce1b95202c16fa126411d6f5c7d5c
mtd: spi-nor: core: Return error code from set_4byte_addr_mode()

The prams->set_4byte_addr_mode returns error code but is not handled
in spi_nor_init(). Handle the return code from set_4byte_addr_mode().

Suggested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220725092505.446315-5-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c