pandora: defconfig: update
[pandora-kernel.git] / arch / arm / plat-samsung / pm-check.c
index 6b733fa..3cbd626 100644 (file)
@@ -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;