spi: atmel-quadspi: return appropriate error code
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 5 Feb 2019 17:33:19 +0000 (17:33 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 17:19:14 +0000 (17:19 +0000)
commit2aaa8dd0938e8e978ce2fa1587cb6960cc32f15e
treebe04f28cb6d30247f4793451660884fc4a6eb84b
parent9ce4c5128b96317beca4424c80e3595184e94fd1
spi: atmel-quadspi: return appropriate error code

Return -ENOTSUPP when atmel_qspi_find_mode() fails. Propagate
the error in atmel_qspi_exec_op().

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c