projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6272fef
)
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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/cpufreq.c
b/arch/arm/mach-rk30/cpufreq.c
index 27ae5450786df26cfe4f62b1ef87be69fc614d1b..c5d44d3324ac9e185656e85b6e30cbb8dbb472e2 100644
(file)
--- 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;
}