rk30: cpufreq: fix gcc error when build without earlysuspend
author黄涛 <huangtao@rock-chips.com>
Tue, 18 Sep 2012 08:37:51 +0000 (16:37 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 18 Sep 2012 08:40:15 +0000 (16:40 +0800)
arch/arm/mach-rk30/cpufreq.c

index 27ae5450786df26cfe4f62b1ef87be69fc614d1b..c5d44d3324ac9e185656e85b6e30cbb8dbb472e2 100644 (file)
@@ -510,9 +510,11 @@ static void ff_early_resume_func(struct early_suspend *h)
 static int __init ff_init(void)
 {
        FF_DEBUG("enter %s\n", __func__);
+#ifdef CONFIG_HAS_EARLYSUSPEND
        ff_early_suspend.suspend = ff_early_suspend_func;
        ff_early_suspend.resume = ff_early_resume_func;
        ff_early_suspend.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 100;
+#endif
        register_early_suspend(&ff_early_suspend);
        return 0;
 }