summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2016-04-12 14:04:29 +0100
committerSoby Mathew <soby.mathew@arm.com>2016-04-12 14:25:13 +0100
commit000bc4578e4f43c4280358340f50c402d2e4b970 (patch)
tree590ee4ae3812f89f5cbc3b8c60473ca2fa2ff510
parent70fafab36bbd3951a84c19013e5de8b072cb932d (diff)
Fix build error in Rockchip platform
This patch fixes the compilation error in Rockchip rk3368 platform port when it is built in release mode. Fixes ARM-software/tf-issues#389 Change-Id: I1a3508ac3a620289cf700e79db8f08569331ac53
-rw-r--r--plat/rockchip/rk3368/drivers/pmu/pmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plat/rockchip/rk3368/drivers/pmu/pmu.c b/plat/rockchip/rk3368/drivers/pmu/pmu.c
index fc31413c..e9906348 100644
--- a/plat/rockchip/rk3368/drivers/pmu/pmu.c
+++ b/plat/rockchip/rk3368/drivers/pmu/pmu.c
@@ -264,7 +264,7 @@ void plat_rockchip_pmusram_prepare(void)
{
uint32_t *sram_dst, *sram_src;
size_t sram_size = 2;
- uint32_t code_size, data_size;
+ uint32_t code_size;
/* pmu sram code and data prepare */
sram_dst = (uint32_t *)PMUSRAM_BASE;
@@ -282,10 +282,10 @@ void plat_rockchip_pmusram_prepare(void)
/* ddr data */
sram_dst += (code_size / 4);
- data_size = ddr_get_resume_data_size();
psram_sleep_cfg->ddr_data = (uint64_t)sram_dst;
- assert((uint64_t)(sram_dst + data_size / 4) < PSRAM_SP_BOTTOM);
+ assert((uint64_t)(sram_dst + ddr_get_resume_data_size() / 4)
+ < PSRAM_SP_BOTTOM);
psram_sleep_cfg->sp = PSRAM_SP_TOP;
}