Skip to contentSkip to conversation

mmc: sdhci-s3c: use S3C_SDHCI_CONTROL2 instead of hardcoded offeset value

PATCH In review Jingoo Han 2 participants 2 messages Dec 14, 2011 – Dec 25, 2011

Subsystems (3)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 mmc: sdhci-s3c: use S3C_SDHCI_CONTROL2 instead of hardcoded offeset value

---
 drivers/mmc/host/sdhci-s3c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-s3c.c +1 -1
index cb60c41..62ff6b4 100644
@@ -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);
 	}
 }
 
Signature · 1 line
1.7.1
#1 lore raw

Hi,

Quoted 10 lines · Jingoo Han
---
 drivers/mmc/host/sdhci-s3c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-s3c.c +0 -0
index cb60c41..62ff6b4 100644

drivers/mmc/host/sdhci-s3c.c static void sdhci_s3c_check_sclk(struct sdhci_host *host) · line 85

Quoted 7 lines
drivers/mmc/host/sdhci-s3c.c +1 -1
@@ -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);
 	}
 }

Thanks, pushed to mmc-next for 3.3.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child