commit: 5feb54a1ab91a237e247c013b8c4fb100ea347b1
From: Jaehoon Chung <[email protected]>
Date: Wed, 19 Sep 2012 14:43:33 +0800
Subject: mmc: sdhci-s3c: fix the wrong number of max bus clocks

We can use up to four bus-clocks; but on module remove, we didn't
disable the fourth bus clock.

Signed-off-by: Jaehoon Chung <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
---
 drivers/mmc/host/sdhci-s3c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index f64108f..e019672 100644
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -792,7 +792,7 @@ static int __devexit sdhci_s3c_remove(struct 
platform_device *pdev)
        pm_runtime_disable(&pdev->dev);
 
        clk_disable(sc->clk_bus[sc->cur_clk]);
-       for (ptr = 0; ptr < 3; ptr++) {
+       for (ptr = 0; ptr < MAX_BUS_CLK; ptr++) {
                if (sc->clk_bus[ptr]) {
                        clk_put(sc->clk_bus[ptr]);
                }
-- 
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to