Patch from anders.blomdell@control.lth.se (Anders Blomdell):
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 Nov 2005 00:23:43 +0000 (00:23 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 21 Nov 2005 00:23:43 +0000 (00:23 +0000)
fix warning messages (might be that 8255_cb should change signature)

comedi/drivers/daqboard2000.c

index 98d63479a3bdca06457d439a6bc6cd382579ac1d..3026b43dcccf8aac5fb01eb733d5bb842b0df300 100644 (file)
@@ -668,10 +668,10 @@ static int daqboard2000_8255_cb(int dir, int port, int data, unsigned long ioadd
 {
   int result = 0;
   if(dir){
-    writew(data,ioaddr+port*2);
+    writew(data,((void*)ioaddr)+port*2);
     result = 0;
   }else{
-    result = readw(ioaddr+port*2);
+    result = readw(((void*)ioaddr)+port*2);
   }
 /*
   printk("daqboard2000_8255_cb %x %d %d %2.2x -> %2.2x\n",