From 6aaca10464aa4b088579ae456dafee460847b283 Mon Sep 17 00:00:00 2001 From: xxx Date: Thu, 26 Jun 2014 18:15:27 +0800 Subject: [PATCH] fixed not define CONFIG_PM warning --- arch/arm/mach-rockchip/rk3188.c | 3 ++- arch/arm/mach-rockchip/rk3288.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 arch/arm/mach-rockchip/rk3188.c diff --git a/arch/arm/mach-rockchip/rk3188.c b/arch/arm/mach-rockchip/rk3188.c old mode 100644 new mode 100755 index feb7563478e1..8d4aaae5321e --- a/arch/arm/mach-rockchip/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188.c @@ -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, diff --git a/arch/arm/mach-rockchip/rk3288.c b/arch/arm/mach-rockchip/rk3288.c index 19788e5ec7f7..616553855ae4 100755 --- a/arch/arm/mach-rockchip/rk3288.c +++ b/arch/arm/mach-rockchip/rk3288.c @@ -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 -- 2.34.1