ARM: EXYNOS: fix non-SMP builds for EXYNOS4
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 27 Jan 2012 05:47:45 +0000 (14:47 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 27 Jan 2012 05:47:45 +0000 (14:47 +0900)
This patch fixes the following build issue, which happens only if
SMP has been disabled:

arch/arm/mach-exynos/built-in.o: In function `exynos4_pm_resume':
arch/arm/mach-exynos/pm.c:387: undefined reference to `scu_enable'

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/pm.c

index a4f61a43c7bae9a9f3141ef6ecd396c0ee3ed7c5..2521b23553ebb32387f10c7b7404ed42c9e9bda5 100644 (file)
@@ -384,7 +384,9 @@ static void exynos4_pm_resume(void)
 
        exynos4_restore_pll();
 
+#ifdef CONFIG_SMP
        scu_enable(S5P_VA_SCU);
+#endif
 
 #ifdef CONFIG_CACHE_L2X0
        s3c_pm_do_restore_core(exynos4_l2cc_save, ARRAY_SIZE(exynos4_l2cc_save));