]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (8939): cx18: fix sparse warnings
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 6 Sep 2008 17:02:43 +0000 (14:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:00 +0000 (09:37 -0200)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/cx18/cx18-io.c

index 202b281901482cbf6f7cedc190151a5917c13fef..4de7b501f207d5f8190107a4bb8e2e1652636471 100644 (file)
@@ -82,7 +82,7 @@ static int mmio_ndelay[CX18_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
 static unsigned cardtype_c = 1;
 static unsigned tuner_c = 1;
 static unsigned radio_c = 1;
-static int mmio_ndelay_c = 1;
+static unsigned mmio_ndelay_c = 1;
 static char pal[] = "--";
 static char secam[] = "--";
 static char ntsc[] = "-";
index 5d07b0fd8a17128bf32dbd1a78e3c8ab6f6e3747..55d1df93292a1f910bcf95301bc699ad940221f6 100644 (file)
@@ -27,7 +27,7 @@
 void cx18_memcpy_fromio(struct cx18 *cx, void *to,
                        const void __iomem *from, unsigned int len)
 {
-       const u8 *src = from;
+       const u8 __iomem *src = from;
        u8 *dst = to;
 
        /* Align reads on the CX23418's addresses */
@@ -61,7 +61,7 @@ void cx18_memcpy_fromio(struct cx18 *cx, void *to,
 
 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count)
 {
-       u8 *dst = addr;
+       u8 __iomem *dst = addr;
        u16 val2 = val | (val << 8);
        u32 val4 = val2 | (val2 << 16);