From 42f891fd99d8c79875b660ed785c48afdb2ce51d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 21 Nov 2005 00:23:43 +0000 Subject: [PATCH] Patch from anders.blomdell@control.lth.se (Anders Blomdell): fix warning messages (might be that 8255_cb should change signature) --- comedi/drivers/daqboard2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 2.26.2