Skip to content

Commit

Permalink
mmc: sdhci-of-aspeed: Drop redundant assignment to host->clock
Browse files Browse the repository at this point in the history
host->clock is already managed by sdhci_set_ios().

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Andrew Jeffery authored and Ulf Hansson committed Sep 11, 2019
1 parent b8deb11 commit bf29043
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/host/sdhci-of-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit bf29043

Please sign in to comment.