]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/ppc-ipic-suspend-without-83xx-fix
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / ppc-ipic-suspend-without-83xx-fix
CommitLineData
2cb7cef9
BS
1From: Takashi Iwai <tiwai@suse.de>
2Subject: [PATCH] Fix build_error without CONFIG_PPC_83xx
3Patch-mainline:
4References:
5
6fsl_deep_sleep() is defined only with CONFIG_PPC_83xx although
7CONFIG_IPIC is set for CONFIG_PPC_MPC512x, too.
8
9Signed-off-by: Takashi Iwai <tiwai@suse.de>
10
11---
12---
13 arch/powerpc/sysdev/ipic.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16--- a/arch/powerpc/sysdev/ipic.c
17+++ b/arch/powerpc/sysdev/ipic.c
18@@ -920,6 +920,7 @@ static int ipic_suspend(struct sys_devic
19 ipic_saved_state.sermr = ipic_read(ipic->regs, IPIC_SERMR);
20 ipic_saved_state.sercr = ipic_read(ipic->regs, IPIC_SERCR);
21
22+#ifdef CONFIG_PPC_83xx
23 if (fsl_deep_sleep()) {
24 /* In deep sleep, make sure there can be no
25 * pending interrupts, as this can cause
26@@ -930,6 +931,7 @@ static int ipic_suspend(struct sys_devic
27 ipic_write(ipic->regs, IPIC_SEMSR, 0);
28 ipic_write(ipic->regs, IPIC_SERMR, 0);
29 }
30+#endif
31
32 return 0;
33 }