aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-s3c64xx.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 435406b48fda..1dbdcc7b9ea7 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1481,9 +1481,10 @@ static int s3c64xx_spi_suspend(struct device *dev)
1481 if (ret) 1481 if (ret)
1482 return ret; 1482 return ret;
1483 1483
1484 /* Disable the clock */ 1484 if (!pm_runtime_suspended(dev)) {
1485 clk_disable_unprepare(sdd->src_clk); 1485 clk_disable_unprepare(sdd->clk);
1486 clk_disable_unprepare(sdd->clk); 1486 clk_disable_unprepare(sdd->src_clk);
1487 }
1487 1488
1488 sdd->cur_speed = 0; /* Output Clock is stopped */ 1489 sdd->cur_speed = 0; /* Output Clock is stopped */
1489 1490
@@ -1499,9 +1500,10 @@ static int s3c64xx_spi_resume(struct device *dev)
1499 if (sci->cfg_gpio) 1500 if (sci->cfg_gpio)
1500 sci->cfg_gpio(); 1501 sci->cfg_gpio();
1501 1502
1502 /* Enable the clock */ 1503 if (!pm_runtime_suspended(dev)) {
1503 clk_prepare_enable(sdd->src_clk); 1504 clk_prepare_enable(sdd->src_clk);
1504 clk_prepare_enable(sdd->clk); 1505 clk_prepare_enable(sdd->clk);
1506 }
1505 1507
1506 s3c64xx_spi_hwinit(sdd, sdd->port_id); 1508 s3c64xx_spi_hwinit(sdd, sdd->port_id);
1507 1509