[U-Boot] [PATCH v5 13/14] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate()

Kuo-Jung Su
2013-06-17T12:07:03Z

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 v5:
- Initial commit

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

diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index 562b14a..0a0a19b 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -363,7 +363,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;
--
1.7.9.5