summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-11-28 08:44:16 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-29 11:59:50 (GMT)
commitbda63586bc5929e97288cdb371bb6456504867ed (patch)
tree3e3bf8635b430858b44e43dd8b8c8cfd682fe8c5 /drivers/firmware
parentc56935bdc0a8edf50237d3b0205133a5b0adc604 (diff)
downloadlinux-fsl-qoriq-bda63586bc5929e97288cdb371bb6456504867ed.tar.xz
firmware: Sigma: Fix endianess issues
Currently the SigmaDSP firmware loader only works correctly on little-endian systems. Fix this by using the proper endianess conversion functions. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/sigma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/sigma.c b/drivers/firmware/sigma.c
index 36265de..1eedb6f 100644
--- a/drivers/firmware/sigma.c
+++ b/drivers/firmware/sigma.c
@@ -133,7 +133,7 @@ int process_sigma_firmware(struct i2c_client *client, const char *name)
crc = crc32(0, fw->data + sizeof(*ssfw_head),
fw->size - sizeof(*ssfw_head));
pr_debug("%s: crc=%x\n", __func__, crc);
- if (crc != ssfw_head->crc)
+ if (crc != le32_to_cpu(ssfw_head->crc))
goto done;
ssfw.pos = sizeof(*ssfw_head);