mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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 <[email protected]> Signed-off-by: Takahiro Kuwano <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
committed by
Tudor Ambarus
parent
47c6f8a67f
commit
08412e72af
@@ -2724,7 +2724,7 @@ static int spi_nor_init(struct spi_nor *nor)
|
||||
*/
|
||||
WARN_ONCE(nor->flags & SNOR_F_BROKEN_RESET,
|
||||
"enabling reset hack; may not recover from unexpected reboots\n");
|
||||
nor->params->set_4byte_addr_mode(nor, true);
|
||||
return nor->params->set_4byte_addr_mode(nor, true);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user