]>
Commit | Line | Data |
---|---|---|
e35b7f8f GKH |
1 | From 5feb54a1ab91a237e247c013b8c4fb100ea347b1 Mon Sep 17 00:00:00 2001 |
2 | From: Jaehoon Chung <jh80.chung@samsung.com> | |
3 | Date: Wed, 19 Sep 2012 14:43:33 +0800 | |
4 | Subject: mmc: sdhci-s3c: fix the wrong number of max bus clocks | |
5 | ||
6 | From: Jaehoon Chung <jh80.chung@samsung.com> | |
7 | ||
8 | commit 5feb54a1ab91a237e247c013b8c4fb100ea347b1 upstream. | |
9 | ||
10 | We can use up to four bus-clocks; but on module remove, we didn't | |
11 | disable the fourth bus clock. | |
12 | ||
13 | Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> | |
14 | Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> | |
15 | Signed-off-by: Chris Ball <cjb@laptop.org> | |
16 | Cc: Ben Hutchings <ben@decadent.org.uk> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
18 | ||
19 | --- | |
20 | drivers/mmc/host/sdhci-s3c.c | 2 +- | |
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
22 | ||
23 | --- a/drivers/mmc/host/sdhci-s3c.c | |
24 | +++ b/drivers/mmc/host/sdhci-s3c.c | |
25 | @@ -656,7 +656,7 @@ static int __devexit sdhci_s3c_remove(st | |
26 | ||
27 | pm_runtime_disable(&pdev->dev); | |
28 | ||
29 | - for (ptr = 0; ptr < 3; ptr++) { | |
30 | + for (ptr = 0; ptr < MAX_BUS_CLK; ptr++) { | |
31 | if (sc->clk_bus[ptr]) { | |
32 | clk_disable(sc->clk_bus[ptr]); | |
33 | clk_put(sc->clk_bus[ptr]); |