fixed not define CONFIG_PM warning
authorxxx <xxx@rock-chips.com>
Thu, 26 Jun 2014 10:15:27 +0000 (18:15 +0800)
committerxxx <xxx@rock-chips.com>
Thu, 26 Jun 2014 10:15:27 +0000 (18:15 +0800)
arch/arm/mach-rockchip/rk3188.c [changed mode: 0644->0755]
arch/arm/mach-rockchip/rk3288.c

old mode 100644 (file)
new mode 100755 (executable)
index feb7563..8d4aaae
@@ -312,8 +312,9 @@ static void rk3188_restart(char mode, const char *cmd)
        writel_relaxed(0xeca8, RK_CRU_VIRT + RK3188_CRU_GLB_SRST_SND);
        dsb();
 }
-
+#ifdef CONFIG_PM
 static void __init rk3188_init_suspend(void);
+#endif
 DT_MACHINE_START(RK3188_DT, "RK30board")
        .smp            = smp_ops(rockchip_smp_ops),
        .map_io         = rk3188_dt_map_io,
index 19788e5ec7f700932d0657ce411aa54c498b2959..616553855ae41498b93a7444092161c06e703b73 100755 (executable)
@@ -489,9 +489,9 @@ static void __init rk3288_init_cpuidle(void)
        if (ret)
                pr_err("%s: failed to register cpuidle driver: %d\n", __func__, ret);
 }
-
+#ifdef CONFIG_PM
 static void __init rk3288_init_suspend(void);
-
+#endif
 static void __init rk3288_init_late(void)
 {
 #ifdef CONFIG_PM