diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-11-28 09:44:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-09 08:52:39 -0800 |
commit | f90312c8cf03b2294f6840c7dc01236838896acc (patch) | |
tree | 1da5b6b751d3986c20ebae062ddfc1b80b2620c1 /drivers | |
parent | cd319e4350715b72939eec5c526ab60bd02b5229 (diff) |
firmware: Sigma: Fix endianess issues
commit bda63586bc5929e97288cdb371bb6456504867ed upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/sigma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/sigma.c b/drivers/firmware/sigma.c index 36265de0a9e..1eedb6f7fda 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); |