diff options
| author | 2018-10-21 17:00:14 +0100 | |
|---|---|---|
| committer | 2018-10-21 17:00:14 +0100 | |
| commit | 4b51c747e4a52175e63d125db8365b38b06f0343 (patch) | |
| tree | cd03133d8efbf5a039c7cb369aa7eaa8c27d8ebe /drivers/spi/spi-atmel.c | |
| parent | Merge branch 'spi-4.19' into spi-linus (diff) | |
| parent | spi: lpspi: add imx8qxp compatible string (diff) | |
| download | wireguard-linux-4b51c747e4a52175e63d125db8365b38b06f0343.tar.xz wireguard-linux-4b51c747e4a52175e63d125db8365b38b06f0343.zip | |
Merge branch 'spi-4.20' into spi-next
Diffstat (limited to 'drivers/spi/spi-atmel.c')
| -rw-r--r-- | drivers/spi/spi-atmel.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 3f890d162934..74fddcd3282b 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -1767,10 +1767,8 @@ static int atmel_spi_suspend(struct device *dev) /* Stop the queue running */ ret = spi_master_suspend(master); - if (ret) { - dev_warn(dev, "cannot suspend master\n"); + if (ret) return ret; - } if (!pm_runtime_suspended(dev)) atmel_spi_runtime_suspend(dev); @@ -1799,11 +1797,7 @@ static int atmel_spi_resume(struct device *dev) } /* Start the queue running */ - ret = spi_master_resume(master); - if (ret) - dev_err(dev, "problem starting queue (%d)\n", ret); - - return ret; + return spi_master_resume(master); } #endif |
