Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf290432 authored by Andrew Jeffery's avatar Andrew Jeffery Committed by Ulf Hansson
Browse files

mmc: sdhci-of-aspeed: Drop redundant assignment to host->clock



host->clock is already managed by sdhci_set_ios().

Suggested-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b8deb11d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
	sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);

	if (clock == 0)
		goto out;
		return;

	for (div = 1; div < 256; div *= 2) {
		if ((host->max_clk / div) <= clock)
@@ -72,9 +72,6 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
	clk = div << SDHCI_DIVIDER_SHIFT;

	sdhci_enable_clk(host, clk);

out:
	host->clock = clock;
}

static void aspeed_sdhci_set_bus_width(struct sdhci_host *host, int width)