summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-bcm63xx.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-03 11:56:54 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-17 16:13:25 +0900
commit965199573a9a50dae82ada92eb2b808b739ce949 (patch)
tree153fb61457850cfaee67611ec53f96a2a8958086 /drivers/spi/spi-bcm63xx.c
parent61d15963176d44ba898913389b65588e717b7c59 (diff)
downloadlwn-965199573a9a50dae82ada92eb2b808b739ce949.tar.gz
lwn-965199573a9a50dae82ada92eb2b808b739ce949.zip
spi/bcm63xx: add missing spi_master_{resume,suspend} calls to PM callbacks
The PM callbacks implemented by the spi-bcm63xx driver don't call spi_master_{resume,suspend}, fix that. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-bcm63xx.c')
-rw-r--r--drivers/spi/spi-bcm63xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index af191f560136..c7b569567f12 100644
--- a/drivers/spi/spi-bcm63xx.c
+++ b/drivers/spi/spi-bcm63xx.c
@@ -484,6 +484,8 @@ static int bcm63xx_spi_suspend(struct device *dev)
platform_get_drvdata(to_platform_device(dev));
struct bcm63xx_spi *bs = spi_master_get_devdata(master);
+ spi_master_suspend(master);
+
clk_disable(bs->clk);
return 0;
@@ -497,6 +499,8 @@ static int bcm63xx_spi_resume(struct device *dev)
clk_enable(bs->clk);
+ spi_master_resume(master);
+
return 0;
}