From: 黄涛 Date: Tue, 18 Sep 2012 08:37:51 +0000 (+0800) Subject: rk30: cpufreq: fix gcc error when build without earlysuspend X-Git-Tag: firefly_0821_release~8610 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=703ab7b30a3a784d78e4164289231e5d6e7d25eb;p=firefly-linux-kernel-4.4.55.git rk30: cpufreq: fix gcc error when build without earlysuspend --- diff --git a/arch/arm/mach-rk30/cpufreq.c b/arch/arm/mach-rk30/cpufreq.c index 27ae5450786d..c5d44d3324ac 100644 --- a/arch/arm/mach-rk30/cpufreq.c +++ b/arch/arm/mach-rk30/cpufreq.c @@ -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; }