Skip to content

Commit

Permalink
Fix warning when compiling fantasy governor
Browse files Browse the repository at this point in the history
If CONFIG_CPU_FREQ_USR_EVNT_NOTIFY was not set, the compiler
issues a warning. We need to use #ifdef instead of #if
  • Loading branch information
turl authored and amery committed May 28, 2012
1 parent d287740 commit 9eb5843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq_fantasy.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, unsigned int even
break;
}

#if CONFIG_CPU_FREQ_USR_EVNT_NOTIFY
#ifdef CONFIG_CPU_FREQ_USR_EVNT_NOTIFY
case CPUFREQ_GOV_USRENET: {
/* cpu frequency limitation has changed, adjust current frequency */
if(!mutex_trylock(&this_dbs_info->timer_mutex)) {
Expand Down

0 comments on commit 9eb5843

Please sign in to comment.