Message ID | 20090827173019.GC739@oksana.dev.rtsoft.ru (mailing list archive) |
---|---|
State | Accepted, archived |
Commit | b79ddf2c2dba44114d150c7758002ef29e693086 |
Delegated to: | Kumar Gala |
Headers | show |
On Aug 27, 2009, at 12:30 PM, Anton Vorontsov wrote: > This is needed to avoid #ifdefs in MPC85xx suspend/resume code. > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > --- > arch/powerpc/include/asm/qe.h | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) applied to next - k
diff --git a/arch/powerpc/include/asm/qe.h b/arch/powerpc/include/asm/qe.h index 791c67a..e8232bb 100644 --- a/arch/powerpc/include/asm/qe.h +++ b/arch/powerpc/include/asm/qe.h @@ -218,8 +218,15 @@ struct qe_firmware_info { u64 extended_modes; /* Extended modes */ }; +#ifdef CONFIG_QUICC_ENGINE /* Upload a firmware to the QE */ int qe_upload_firmware(const struct qe_firmware *firmware); +#else +static inline int qe_upload_firmware(const struct qe_firmware *firmware) +{ + return -ENOSYS; +} +#endif /* CONFIG_QUICC_ENGINE */ /* Obtain information on the uploaded firmware */ struct qe_firmware_info *qe_get_firmware_info(void);
This is needed to avoid #ifdefs in MPC85xx suspend/resume code. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> --- arch/powerpc/include/asm/qe.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)