mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 02:56:15 +07:00
[media] cx88: fix firmware load on big-endian systems
Tested with a HVR-1300. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
42d0c3ad28
commit
6ba4c432dc
@ -471,7 +471,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev)
|
||||
dprintk(1,"Loading firmware ...\n");
|
||||
dataptr = (u32*)firmware->data;
|
||||
for (i = 0; i < (firmware->size >> 2); i++) {
|
||||
value = *dataptr;
|
||||
value = le32_to_cpu(*dataptr);
|
||||
checksum += ~value;
|
||||
memory_write(dev->core, i, value);
|
||||
dataptr++;
|
||||
|
Loading…
Reference in New Issue
Block a user