]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dm1105: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 21 Aug 2014 14:50:34 +0000 (11:50 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 13:32:59 +0000 (10:32 -0300)
drivers/media/pci/dm1105/dm1105.c:617:9: warning: incorrect type in argument 1 (different base types)

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/dm1105/dm1105.c

index e8826c535ccdb2980fc6e931831f2826bcb51161..ed11716731e95cdb6a51ce90b7df6c4de267e44d 100644 (file)
@@ -614,7 +614,7 @@ static int dm1105_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
 
 static void dm1105_set_dma_addr(struct dm1105_dev *dev)
 {
-       dm_writel(DM1105_STADR, cpu_to_le32(dev->dma_addr));
+       dm_writel(DM1105_STADR, (__force u32)cpu_to_le32(dev->dma_addr));
 }
 
 static int dm1105_dma_map(struct dm1105_dev *dev)