From: Ian Abbott Date: Mon, 13 Nov 2006 14:11:52 +0000 (+0000) Subject: Replaced deprecated use of check_region(). X-Git-Tag: r0_7_74~156 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8324e2602d16c1ee698c27339df613fef82e5994;p=comedi.git Replaced deprecated use of check_region(). --- diff --git a/comedi/drivers/s526.c b/comedi/drivers/s526.c index 66cbe50f..4f8d1bd2 100644 --- a/comedi/drivers/s526.c +++ b/comedi/drivers/s526.c @@ -279,11 +279,10 @@ static int s526_attach(comedi_device *dev,comedi_devconfig *it) printk("comedi%d: s526: ", dev->minor); iobase=it->options[0]; - if(check_region(iobase, S526_IOSIZE) < 0){ + if(!iobase || !request_region(iobase, S526_IOSIZE, thisboard->name)){ comedi_error(dev,"I/O port conflict"); return -EIO; } - request_region(iobase, S526_IOSIZE, thisboard->name); dev->iobase=iobase; printk("iobase=0x%lux\n", dev->iobase);