]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/arm/mach-exynos/exynos.c
Merge tag 'tags/cleanup2-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-exynos / exynos.c
index 4987ec7711c3a1c44473b31d69fb940790c5456c..b32a907d021d4a2b5a809a22899cb237464d0d57 100644 (file)
@@ -327,8 +327,10 @@ static int __init exynos4_l2x0_cache_init(void)
        if (ret)
                return ret;
 
-       l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
-       clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
+       if (IS_ENABLED(CONFIG_S5P_SLEEP)) {
+               l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
+               clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
+       }
        return 0;
 }
 early_initcall(exynos4_l2x0_cache_init);