aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/exynos.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/exynos.c')
-rw-r--r--arch/arm/mach-exynos/exynos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
index 4987ec7711c3..b32a907d021d 100644
--- a/arch/arm/mach-exynos/exynos.c
+++ b/arch/arm/mach-exynos/exynos.c
@@ -327,8 +327,10 @@ static int __init exynos4_l2x0_cache_init(void)
327 if (ret) 327 if (ret)
328 return ret; 328 return ret;
329 329
330 l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs); 330 if (IS_ENABLED(CONFIG_S5P_SLEEP)) {
331 clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long)); 331 l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
332 clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
333 }
332 return 0; 334 return 0;
333} 335}
334early_initcall(exynos4_l2x0_cache_init); 336early_initcall(exynos4_l2x0_cache_init);