projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98eaa09
)
powerpc/qe: Add qe_upload_firmware() stub for non-QE builds
author
Anton Vorontsov
<
[email protected]
>
Thu, 27 Aug 2009 17:30:19 +0000
(21:30 +0400)
committer
Kumar Gala
<
[email protected]
>
Thu, 12 Nov 2009 03:43:11 +0000
(21:43 -0600)
This is needed to avoid #ifdefs in MPC85xx suspend/resume code.
Signed-off-by: Anton Vorontsov <
[email protected]
>
Signed-off-by: Kumar Gala <
[email protected]
>
arch/powerpc/include/asm/qe.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/qe.h
b/arch/powerpc/include/asm/qe.h
index f388f0ab193f469b738ad60233ad8b3efaa55e8b..28fee3b7887aac4e3edde2aaaf94dcfc4461b548 100644
(file)
--- a/
arch/powerpc/include/asm/qe.h
+++ b/
arch/powerpc/include/asm/qe.h
@@
-210,8
+210,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);