From 8324e2602d16c1ee698c27339df613fef82e5994 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 13 Nov 2006 14:11:52 +0000 Subject: [PATCH] Replaced deprecated use of check_region(). --- comedi/drivers/s526.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.26.2