diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-12 00:24:09 +0000 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-03-08 12:33:58 +0000 |
commit | 840eeeb880e03927588e0e971cb426441795ff14 (patch) | |
tree | d97388d0b65266cb6c4979502364a4d447d68275 /arch/arm/plat-s3c/pm-check.c | |
parent | 2261e0e6e3991d4c5f33e9fedadfc465eedc05a7 (diff) | |
download | op-kernel-dev-840eeeb880e03927588e0e971cb426441795ff14.zip op-kernel-dev-840eeeb880e03927588e0e971cb426441795ff14.tar.gz |
[ARM] S3C: Fix warnings in the PM memory CRC code
Fix warnings from struct resource being bigger than unsigned long by
forcing the type. We are only a 32bit platform so no physical memory
addresses will be too big to fit in this.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/pm-check.c')
-rw-r--r-- | arch/arm/plat-s3c/pm-check.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c/pm-check.c b/arch/arm/plat-s3c/pm-check.c index 95ba769..b221470 100644 --- a/arch/arm/plat-s3c/pm-check.c +++ b/arch/arm/plat-s3c/pm-check.c @@ -55,7 +55,8 @@ static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg) if ((ptr->flags & IORESOURCE_MEM) && strcmp(ptr->name, "System RAM") == 0) { S3C_PMDBG("Found system RAM at %08lx..%08lx\n", - ptr->start, ptr->end); + (unsigned long)ptr->start, + (unsigned long)ptr->end); arg = (fn)(ptr, arg); } @@ -75,7 +76,8 @@ static u32 *s3c_pm_countram(struct resource *res, u32 *val) size += CHECK_CHUNKSIZE-1; size /= CHECK_CHUNKSIZE; - S3C_PMDBG("Area %08lx..%08lx, %d blocks\n", res->start, res->end, size); + S3C_PMDBG("Area %08lx..%08lx, %d blocks\n", + (unsigned long)res->start, (unsigned long)res->end, size); *val += size * sizeof(u32); return val; |