]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-s3c: Enable only required bus clock
authorChander Kashyap <chander.kashyap@linaro.org>
Fri, 14 Sep 2012 09:08:49 +0000 (09:08 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 3 Oct 2012 14:05:26 +0000 (10:05 -0400)
commite684c46876f1d0c1c4964741244a34b6be837b5f
tree043654132b294ed118be2131851ed56a2de4a0dc
parent897b69e72054a39c1c1d99c8f334ffed6dc99ac4
mmc: sdhci-s3c: Enable only required bus clock

In case of multiple bus clock sources, all the clock sources were
getting enabled. As only one clock source is needed at the time hence
enable only the required bus clock.

This patch does as follows:
1. In sdhci_s3c_probe enable only required bus clock source.

2. Handle the disabling of old bus clock and enables the
best clock selected in sdhci_s3c_set_clock().

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c