summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/epapr_paravirt.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2014-05-12 17:05:19 +0200
committerScott Wood <scottwood@freescale.com>2014-05-23 01:08:23 +0200
commit440d74d1caf7b38f727553bc54de09c1e29e7741 (patch)
tree1700c5370442563438dc3c4ab94a38fac53a22db /arch/powerpc/kernel/epapr_paravirt.c
parentclk: qoriq: Update the clock bindings (diff)
downloadlinux-440d74d1caf7b38f727553bc54de09c1e29e7741.tar.xz
linux-440d74d1caf7b38f727553bc54de09c1e29e7741.zip
powerpc: fix build of epapr_paravirt on 64-bit book3s
This fixes an allyesconfig build break introduced by commit 7762b1ed7aaee223230793fcee80672e2e3aa7a8 "powerpc: move epapr paravirt init of power_save to an initcall". Signed-off-by: Scott Wood <scottwood@freescale.com> Cc: Stuart Yoder <stuart.yoder@freescale.com>
Diffstat (limited to 'arch/powerpc/kernel/epapr_paravirt.c')
-rw-r--r--arch/powerpc/kernel/epapr_paravirt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c
index 8a7a62c85604..eab2f2a05e5f 100644
--- a/arch/powerpc/kernel/epapr_paravirt.c
+++ b/arch/powerpc/kernel/epapr_paravirt.c
@@ -73,8 +73,10 @@ int __init epapr_paravirt_early_init(void)
static int __init epapr_idle_init(void)
{
+#if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64)
if (epapr_has_idle)
ppc_md.power_save = epapr_ev_idle;
+#endif
return 0;
}