Skip to content

Commit

Permalink
Merge commit 'f3cae355a962784101478504ef7f6a389ad62979' into next
Browse files Browse the repository at this point in the history
Merge Linus tree to get "cpufreq, powernv: Fix build failure on UP"
to avoid build breakages in some of my test configs.
  • Loading branch information
Benjamin Herrenschmidt committed Apr 29, 2014
2 parents 7f06f21 + f3cae35 commit 48ce3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions drivers/cpufreq/powernv-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <asm/cputhreads.h>
#include <asm/reg.h>
#include <asm/smp.h> /* Required for cpu_sibling_mask() in UP configs */

#define POWERNV_MAX_PSTATES 256

Expand Down
4 changes: 1 addition & 3 deletions drivers/cpufreq/unicore2-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ static int __init ucv2_cpu_init(struct cpufreq_policy *policy)
policy->max = policy->cpuinfo.max_freq = 1000000;
policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
policy->clk = clk_get(NULL, "MAIN_CLK");
if (IS_ERR(policy->clk))
return PTR_ERR(policy->clk);
return 0;
return PTR_ERR_OR_ZERO(policy->clk);
}

static struct cpufreq_driver ucv2_driver = {
Expand Down

0 comments on commit 48ce3b7

Please sign in to comment.