diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-08-27 13:30:19 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-11-11 22:43:11 -0500 |
commit | b79ddf2c2dba44114d150c7758002ef29e693086 (patch) | |
tree | 09c381acf382609915c628e623f6f504418a86f7 /arch/powerpc/include/asm/qe.h | |
parent | 98eaa0987afdcab0929dc205edb5c492cf66a370 (diff) |
powerpc/qe: Add qe_upload_firmware() stub for non-QE builds
This is needed to avoid #ifdefs in MPC85xx suspend/resume code.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/qe.h')
-rw-r--r-- | arch/powerpc/include/asm/qe.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/qe.h b/arch/powerpc/include/asm/qe.h index f388f0ab193f..28fee3b7887a 100644 --- a/arch/powerpc/include/asm/qe.h +++ b/arch/powerpc/include/asm/qe.h | |||
@@ -210,8 +210,15 @@ struct qe_firmware_info { | |||
210 | u64 extended_modes; /* Extended modes */ | 210 | u64 extended_modes; /* Extended modes */ |
211 | }; | 211 | }; |
212 | 212 | ||
213 | #ifdef CONFIG_QUICC_ENGINE | ||
213 | /* Upload a firmware to the QE */ | 214 | /* Upload a firmware to the QE */ |
214 | int qe_upload_firmware(const struct qe_firmware *firmware); | 215 | int qe_upload_firmware(const struct qe_firmware *firmware); |
216 | #else | ||
217 | static inline int qe_upload_firmware(const struct qe_firmware *firmware) | ||
218 | { | ||
219 | return -ENOSYS; | ||
220 | } | ||
221 | #endif /* CONFIG_QUICC_ENGINE */ | ||
215 | 222 | ||
216 | /* Obtain information on the uploaded firmware */ | 223 | /* Obtain information on the uploaded firmware */ |
217 | struct qe_firmware_info *qe_get_firmware_info(void); | 224 | struct qe_firmware_info *qe_get_firmware_info(void); |