summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/pm-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung/pm-check.c')
-rw-r--r--arch/arm/plat-samsung/pm-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/pm-check.c b/arch/arm/plat-samsung/pm-check.c
index 6b733fafe7c..3cbd62666b1 100644
--- a/arch/arm/plat-samsung/pm-check.c
+++ b/arch/arm/plat-samsung/pm-check.c
@@ -72,7 +72,7 @@ static void s3c_pm_run_sysram(run_fn_t fn, u32 *arg)
static u32 *s3c_pm_countram(struct resource *res, u32 *val)
{
- u32 size = (u32)(res->end - res->start)+1;
+ u32 size = (u32)resource_size(res);
size += CHECK_CHUNKSIZE-1;
size /= CHECK_CHUNKSIZE;