Skip to content

Commit

Permalink
mmc: sdhci-s3c: use S3C_SDHCI_CONTROL2 instead of hardcoded offset value
Browse files Browse the repository at this point in the history
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Jingoo Han authored and Chris Ball committed Jan 12, 2012
1 parent 053b3ce commit 7003fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sdhci-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static void sdhci_s3c_check_sclk(struct sdhci_host *host)

tmp &= ~S3C_SDHCI_CTRL2_SELBASECLK_MASK;
tmp |= ourhost->cur_clk << S3C_SDHCI_CTRL2_SELBASECLK_SHIFT;
writel(tmp, host->ioaddr + 0x80);
writel(tmp, host->ioaddr + S3C_SDHCI_CONTROL2);
}
}

Expand Down

0 comments on commit 7003fec

Please sign in to comment.