summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-atmel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-atmel.c')
-rw-r--r--drivers/spi/spi-atmel.c10
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)
1767 1767
1768 /* Stop the queue running */ 1768 /* Stop the queue running */
1769 ret = spi_master_suspend(master); 1769 ret = spi_master_suspend(master);
1770 if (ret) { 1770 if (ret)
1771 dev_warn(dev, "cannot suspend master\n");
1772 return ret; 1771 return ret;
1773 }
1774 1772
1775 if (!pm_runtime_suspended(dev)) 1773 if (!pm_runtime_suspended(dev))
1776 atmel_spi_runtime_suspend(dev); 1774 atmel_spi_runtime_suspend(dev);
@@ -1799,11 +1797,7 @@ static int atmel_spi_resume(struct device *dev)
1799 } 1797 }
1800 1798
1801 /* Start the queue running */ 1799 /* Start the queue running */
1802 ret = spi_master_resume(master); 1800 return spi_master_resume(master);
1803 if (ret)
1804 dev_err(dev, "problem starting queue (%d)\n", ret);
1805
1806 return ret;
1807} 1801}
1808#endif 1802#endif
1809 1803