diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-09-05 10:51:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-05 13:38:27 +0200 |
commit | 7c5d8a249acadc3e9d5af643c0fe24b608a98269 (patch) | |
tree | f5b8e95d463efa0ad7a704f85397bd8941203278 /drivers/spi/spi-pxa2xx.c | |
parent | spi: spidev_test: Improve decoded text part of hex dump (diff) | |
download | linux-7c5d8a249acadc3e9d5af643c0fe24b608a98269.tar.xz linux-7c5d8a249acadc3e9d5af643c0fe24b608a98269.zip |
spi: Do not print a message if spi_controller_{suspend,resume}() fails
spi_controller_{suspend,resume}() already prints an error message on
failure, so there is no need to repeat this in individual drivers.
Note: spi_master_{suspend,resume}() is an alias for
spi_controller_{suspend,resume}().
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Daniel Mack <daniel@zonque.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 14f4ea59caff..e3cbc66a7061 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1808,13 +1808,7 @@ static int pxa2xx_spi_resume(struct device *dev) lpss_ssp_setup(drv_data); /* Start the queue running */ - status = spi_controller_resume(drv_data->master); - if (status != 0) { - dev_err(dev, "problem starting queue (%d)\n", status); - return status; - } - - return 0; + return spi_controller_resume(drv_data->master); } #endif |