Skip to content

Commit

Permalink
powerpc/qe: Add qe_upload_firmware() stub for non-QE builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Nov 12, 2009
1 parent 98eaa09 commit b79ddf2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/powerpc/include/asm/qe.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b79ddf2

Please sign in to comment.