Patchwork [U-Boot,v7,10/11] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate()

login
register
mail settings
Submitter Kuo-Jung Su
Date July 29, 2013, 5:51 a.m.
Message ID <1375077113-27251-11-git-send-email-dantesu@gmail.com>
Download mbox | patch
Permalink /patch/262686/
State Changes Requested
Delegated to: Albert ARIBAUD
Headers show

Comments

Kuo-Jung Su - July 29, 2013, 5:51 a.m.
From: Kuo-Jung Su <dantesu@faraday-tech.com>

This updates ftsdc010_mci.c for latest Faraday clock APIs.

Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Albert Aribaud <albert.u.boot@aribaud.net>
CC: Andy Fleming <afleming@gmail.com>
---
Changes for v6, v7:
   - Nothing updates

Changes for v5:
   - Initial commit

 drivers/mmc/ftsdc010_mci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.7.9.5

Patch

diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index 7600d5c..54976b0 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -366,7 +366,7 @@  int ftsdc010_mmc_init(int devid)
 #ifdef CONFIG_SYS_CLK_FREQ
 	chip->sclk = CONFIG_SYS_CLK_FREQ;
 #else
-	chip->sclk = clk_get_rate("SDC");
+	chip->sclk = clock_get_rate(MMC_CLK);
 #endif

 	mmc->voltages  = MMC_VDD_32_33 | MMC_VDD_33_34;