Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-exynos / exynos.c
index fd3664f7244aa200ff3a731119e09e3f7be85ea3..b32a907d021d4a2b5a809a22899cb237464d0d57 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
+#include <linux/serial_s3c.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_fdt.h>
@@ -26,7 +27,6 @@
 #include <asm/memory.h>
 
 #include <plat/cpu.h>
-#include <plat/regs-serial.h>
 
 #include "common.h"
 #include "mfc.h"
@@ -242,6 +242,7 @@ void __init exynos_init_late(void)
                return;
 
        pm_genpd_poweroff_unused();
+       exynos_pm_init();
 }
 
 static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname,
@@ -326,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);