/* Callback to return the maximum clock rate acheivable by the controller.  */
static unsigned int sdhci_s3c_get_max_clk(struct sdhci_host *host)
/* Callback to return the maximum clock rate acheivable by the controller.  */
static unsigned int sdhci_s3c_get_max_clk(struct sdhci_host *host)
{
	struct sdhci_s3c *ourhost = to_s3c(host);
	struct clk *busclk;
	unsigned int rate, max;
	int clk;
	sdhci_s3c_check_sclk(host);
	for (max = 0, clk = 0; clk < MAX_BUS_CLK; clk++) {
		busclk = ourhost->clk_bus[clk];
		if (!busclk)
			continue;
		rate = clk_get_rate(busclk);
		if (rate > max)
			max = rate;
	}
	return max;
}