[media] atmel-isi: Fix a truncate warning
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 22 Aug 2014 10:53:27 +0000 (05:53 -0500)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:02 +0000 (18:52 -0300)
   drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming':
   drivers/media/platform/soc_camera/atmel-isi.c:397:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
     isi_writel(isi, ISI_INTDIS, ~0UL);
                             ^

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c

index f87012b15b28e26ee661e4678a21781b6d0211f8..96a4b112e1ca561a44f3a68d0cfe54198636e8eb 100644 (file)
@@ -394,7 +394,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
                return ret;
        }
        /* Disable all interrupts */
-       isi_writel(isi, ISI_INTDIS, ~0UL);
+       isi_writel(isi, ISI_INTDIS, (u32)~0UL);
 
        spin_lock_irq(&isi->lock);
        /* Clear any pending interrupt */