Commit cfd1f82f authored by Kyungmin Park's avatar Kyungmin Park Committed by Linus Torvalds

sdhci: remove useless set_clock() check

When using QUIRK_NONSTANDARD_CLOCK, it checks the set_clock() function
which is not used actually.  So delete it.
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ccc92c23
...@@ -1787,7 +1787,7 @@ int sdhci_add_host(struct sdhci_host *host) ...@@ -1787,7 +1787,7 @@ int sdhci_add_host(struct sdhci_host *host)
*/ */
mmc->ops = &sdhci_ops; mmc->ops = &sdhci_ops;
if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK && if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK &&
host->ops->set_clock && host->ops->get_min_clock) host->ops->get_min_clock)
mmc->f_min = host->ops->get_min_clock(host); mmc->f_min = host->ops->get_min_clock(host);
else else
mmc->f_min = host->max_clk / 256; mmc->f_min = host->max_clk / 256;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment