diff mbox

[RFC,3/4] mmc: sdhci-bcm-kona: reuse sdhci_pltfm_clk_get_timeout_clock

Message ID 1487303780-234812-4-git-send-email-shawn.lin@rock-chips.com (mailing list archive)
State New, archived
Headers show

Commit Message

Shawn Lin Feb. 17, 2017, 3:56 a.m. UTC
sdhci-bcm-kona is using the wrong callback to return the timeout
clock rate to sdhci core, which return it in Hz unit. BUt what we
need actually is to return it in KHz unit. So we could reuse the
helper of sdhci_pltfm_clk_get_timeout_clock to fix this.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 drivers/mmc/host/sdhci-bcm-kona.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c
index 51dd2fd..4baf709 100644
--- a/drivers/mmc/host/sdhci-bcm-kona.c
+++ b/drivers/mmc/host/sdhci-bcm-kona.c
@@ -189,7 +189,7 @@  static void sdhci_bcm_kona_init_74_clocks(struct sdhci_host *host,
 static struct sdhci_ops sdhci_bcm_kona_ops = {
 	.set_clock = sdhci_set_clock,
 	.get_max_clock = sdhci_pltfm_clk_get_max_clock,
-	.get_timeout_clock = sdhci_pltfm_clk_get_max_clock,
+	.get_timeout_clock = sdhci_pltfm_clk_get_timeout_clock,
 	.platform_send_init_74_clocks = sdhci_bcm_kona_init_74_clocks,
 	.set_bus_width = sdhci_set_bus_width,
 	.reset = sdhci_reset,