@@ -288,14 +288,6 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
sdhci_enable_clk(host, clk);
}
-static unsigned int aspeed_sdhci_get_max_clock(struct sdhci_host *host)
-{
- if (host->mmc->f_max)
- return host->mmc->f_max;
-
- return sdhci_pltfm_clk_get_max_clock(host);
-}
-
static void aspeed_sdhci_set_bus_width(struct sdhci_host *host, int width)
{
struct sdhci_pltfm_host *pltfm_priv;
@@ -446,7 +438,7 @@ static int aspeed_sdhci_execute_tuning(struct sdhci_host *host, u32 opcode)
static const struct sdhci_ops aspeed_sdhci_ops = {
.read_l = aspeed_sdhci_readl,
.set_clock = aspeed_sdhci_set_clock,
- .get_max_clock = aspeed_sdhci_get_max_clock,
+ .get_max_clock = sdhci_pltfm_clk_get_max_clock,
.set_bus_width = aspeed_sdhci_set_bus_width,
.get_timeout_clock = sdhci_pltfm_clk_get_max_clock,
.reset = aspeed_sdhci_reset,
Don't limit clock frequency by f_max. Signed-off-by: Cool Lee <cool_lee@aspeedtech.com> --- drivers/mmc/host/sdhci-of-aspeed.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)