aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_elf_loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c
index e1f89d649733..0d36f94ab51d 100644
--- a/drivers/remoteproc/remoteproc_elf_loader.c
+++ b/drivers/remoteproc/remoteproc_elf_loader.c
@@ -66,13 +66,13 @@ rproc_elf_sanity_check(struct rproc *rproc, const struct firmware *fw)
66 return -EINVAL; 66 return -EINVAL;
67 } 67 }
68 68
69 /* We assume the firmware has the same endianess as the host */ 69 /* We assume the firmware has the same endianness as the host */
70# ifdef __LITTLE_ENDIAN 70# ifdef __LITTLE_ENDIAN
71 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) { 71 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
72# else /* BIG ENDIAN */ 72# else /* BIG ENDIAN */
73 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) { 73 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
74# endif 74# endif
75 dev_err(dev, "Unsupported firmware endianess\n"); 75 dev_err(dev, "Unsupported firmware endianness\n");
76 return -EINVAL; 76 return -EINVAL;
77 } 77 }
78 78