Skip to content

Commit

Permalink
capp: fix endian conversion
Browse files Browse the repository at this point in the history
Acked-by: Stewart Smith <stewart@flamingspork.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
npiggin authored and oohal committed Dec 16, 2019
1 parent 2665739 commit ca412e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/capp.c
Expand Up @@ -168,7 +168,7 @@ int64_t capp_load_ucode(unsigned int chip_id, uint32_t opal_id,

/* 'CAPPULID' in ASCII */
if ((be64_to_cpu(ucode->eyecatcher) != 0x43415050554C4944UL) ||
(be64_to_cpu(ucode->version != 1))) {
(be64_to_cpu(ucode->version) != 1)) {
PHBERR(opal_id, chip_id, index,
"CAPP: ucode header invalid\n");
return OPAL_HARDWARE;
Expand Down

0 comments on commit ca412e3

Please sign in to comment.