Commit c79a23f3 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] cx88: fix sparse warning

drivers/media/pci/cx88/cx88-blackbird.c:476:25: warning: cast to restricted __le32
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0b6b6302
...@@ -428,7 +428,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev) ...@@ -428,7 +428,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev)
int i, retval = 0; int i, retval = 0;
u32 value = 0; u32 value = 0;
u32 checksum = 0; u32 checksum = 0;
u32 *dataptr; __le32 *dataptr;
retval = register_write(dev->core, IVTV_REG_VPU, 0xFFFFFFED); retval = register_write(dev->core, IVTV_REG_VPU, 0xFFFFFFED);
retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST); retval |= register_write(dev->core, IVTV_REG_HW_BLOCKS, IVTV_CMD_HW_BLOCKS_RST);
...@@ -467,7 +467,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev) ...@@ -467,7 +467,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev)
/* transfer to the chip */ /* transfer to the chip */
dprintk(1,"Loading firmware ...\n"); dprintk(1,"Loading firmware ...\n");
dataptr = (u32*)firmware->data; dataptr = (__le32 *)firmware->data;
for (i = 0; i < (firmware->size >> 2); i++) { for (i = 0; i < (firmware->size >> 2); i++) {
value = le32_to_cpu(*dataptr); value = le32_to_cpu(*dataptr);
checksum += ~value; checksum += ~value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment