From: Todd Poynor Date: Thu, 2 Sep 2010 23:13:24 +0000 (-0700) Subject: tegra: sdhci: Remove set_clock op, not needed X-Git-Tag: firefly_0821_release~9833^2~239 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2a9a2f685a4d03964e6057c4171bc0c96062157f;p=firefly-linux-kernel-4.4.55.git tegra: sdhci: Remove set_clock op, not needed The SDHCI controller specifies a maximum SDCLK speed of 48MHz, which is now in agreement with the platform clock, and so the SDHCI host max_clk no longer needs to be overriden. Change-Id: Ie8c7f643d956cfd1bb83675708336278482c40d8 Signed-off-by: Todd Poynor --- diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 1b39a1ce2463..ee3b31c720ee 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -48,15 +48,8 @@ static int tegra_sdhci_enable_dma(struct sdhci_host *host) return 0; } -static void tegra_sdhci_set_clock(struct sdhci_host *host, unsigned int clock) -{ - struct tegra_sdhci_host *tegra_host = sdhci_priv(host); - host->max_clk = clk_get_rate(tegra_host->clk); -} - static struct sdhci_ops tegra_sdhci_ops = { .enable_dma = tegra_sdhci_enable_dma, - .set_clock = tegra_sdhci_set_clock, }; static int __devinit tegra_sdhci_probe(struct platform_device *pdev)