[PATCH 5/8] mci:s3c: Fix sparse warning for readl/writel arguments.
Marek Belisko
marek.belisko at open-nandra.com
Thu Oct 13 16:23:11 EDT 2011
warning:
drivers/mci/s3c.c:789:2: warning: incorrect type in argument 1 (different base types)
drivers/mci/s3c.c:789:2: expected void const volatile [noderef] <asn:2>*<noident>
drivers/mci/s3c.c:789:2: got int
drivers/mci/s3c.c:789:2: warning: incorrect type in argument 1 (different base types)
drivers/mci/s3c.c:789:2: expected void const volatile [noderef] <asn:2>*<noident>
drivers/mci/s3c.c:789:2: got int
Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
drivers/mci/s3c.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mci/s3c.c b/drivers/mci/s3c.c
index b03d7d7..69573fb 100644
--- a/drivers/mci/s3c.c
+++ b/drivers/mci/s3c.c
@@ -786,8 +786,8 @@ static int s3c_mci_probe(struct device_d *hw_dev)
struct s3c_mci_platform_data *pd = hw_dev->platform_data;
/* TODO replace by the global func: enable the SDI unit clock */
- writel(readl(S3C24X0_CLOCK_POWER_BASE + 0x0c) | 0x200,
- S3C24X0_CLOCK_POWER_BASE + 0x0c);
+ writel(readl(IOMEM(S3C24X0_CLOCK_POWER_BASE + 0x0c)) | 0x200,
+ IOMEM(S3C24X0_CLOCK_POWER_BASE + 0x0c));
if (pd == NULL) {
pr_err("Missing platform data\n");
--
1.7.4.1
More information about the barebox
mailing list