rk30: pm: fix link error when build without KEYS_RK29
author黄涛 <huangtao@rock-chips.com>
Fri, 24 May 2013 08:28:19 +0000 (16:28 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 24 May 2013 08:28:19 +0000 (16:28 +0800)
arch/arm/mach-rk30/pm.c

index aa6009cfb637ff48594e0607e0646905ef873f86..6ff5a64d901e8ec6a3e5e46efcbe017208830e88 100755 (executable)
@@ -1076,12 +1076,13 @@ static int rk30_pm_prepare(void)
 static void rk30_pm_finish(void)
 {
        enable_hlt();
+#ifdef CONFIG_KEYS_RK29
        if(rk_soc_pm_ctr_bits_check(1<<RK_PM_CTR_WAKE_UP_KEY))
        {
                rk28_send_wakeup_key();
                printk("rk30_pm_finish rk28_send_wakeup_key\n");
        }
-
+#endif
 }
 
 static struct platform_suspend_ops rk30_pm_ops = {