]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: spi-nor: Fix some error codes in cqspi_setup_flash()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:30:39 +0000 (11:30 +0300)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Sat, 26 Nov 2016 15:50:13 +0000 (16:50 +0100)
commit10ad1d754a434c024ce7eeb1cec9f69fd3ecc863
treeae6dabf42c7dd13a1255ea5893a7f9c1dff62be2
parent193e87143c290ec16838f5368adc0e0bc94eb931
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: 140623410536 ("mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/cadence-quadspi.c