]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Takashi Iwai <tiwai@suse.de> |
2 | Subject: [PATCH] Fix build_error without CONFIG_PPC_83xx | |
3 | Patch-mainline: | |
4 | References: | |
5 | ||
6 | fsl_deep_sleep() is defined only with CONFIG_PPC_83xx although | |
7 | CONFIG_IPIC is set for CONFIG_PPC_MPC512x, too. | |
8 | ||
9 | Signed-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 | } |