]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.4.21/mmc-sdhci-s3c-fix-the-wrong-number-of-max-bus-clocks.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.4.21 / mmc-sdhci-s3c-fix-the-wrong-number-of-max-bus-clocks.patch
CommitLineData
e35b7f8f
GKH
1From 5feb54a1ab91a237e247c013b8c4fb100ea347b1 Mon Sep 17 00:00:00 2001
2From: Jaehoon Chung <jh80.chung@samsung.com>
3Date: Wed, 19 Sep 2012 14:43:33 +0800
4Subject: mmc: sdhci-s3c: fix the wrong number of max bus clocks
5
6From: Jaehoon Chung <jh80.chung@samsung.com>
7
8commit 5feb54a1ab91a237e247c013b8c4fb100ea347b1 upstream.
9
10We can use up to four bus-clocks; but on module remove, we didn't
11disable the fourth bus clock.
12
13Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
14Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
15Signed-off-by: Chris Ball <cjb@laptop.org>
16Cc: Ben Hutchings <ben@decadent.org.uk>
17Signed-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]);