mtd: spi-nor: Fix some error codes in cqspi_setup_flash()
We return success or possibly uninitialized values on these error paths instead of proper error codes. Fixes: 14062341 ("mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Reviewed-by: NMarek Vasut <marex@denx.de> Reviewed-by: NMoritz Fischer <moritz.fischer@ettus.com> Signed-off-by: NCyrille Pitchen <cyrille.pitchen@atmel.com>
Showing
想要评论请 注册 或 登录