Skip to contentSkip to conversation

powerpc/qe: Add qe_upload_firmware() stub for non-QE builds

PATCH Applied Anton Vorontsov 2 participants 2 messages Aug 27, 2009 – Aug 28, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 powerpc/qe: Add qe_upload_firmware() stub for non-QE builds

This is needed to avoid #ifdefs in MPC85xx suspend/resume code.

---
 arch/powerpc/include/asm/qe.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/qe.h +7 -0
index 791c67a..e8232bb 100644
@@ -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);
Signature · 1 line
1.6.3.3
Applied
#1 lore raw
Quoted 6 lines · Anton Vorontsov

This is needed to avoid #ifdefs in MPC85xx suspend/resume code.

---
arch/powerpc/include/asm/qe.h | 7 +++++++

1 files changed, 7 insertions(+), 0 deletions(-)

applied to next

- k