From: Frank Mori Hess Date: Mon, 21 Nov 2005 00:23:43 +0000 (+0000) Subject: Patch from anders.blomdell@control.lth.se (Anders Blomdell): X-Git-Tag: r0_7_71~124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42f891fd99d8c79875b660ed785c48afdb2ce51d;p=comedi.git Patch from anders.blomdell@control.lth.se (Anders Blomdell): fix warning messages (might be that 8255_cb should change signature) --- diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index 98d63479..3026b43d 100644 --- a/comedi/drivers/daqboard2000.c +++ b/comedi/drivers/daqboard2000.c @@ -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",