From: David Schleef Date: Sun, 30 Dec 2001 07:46:23 +0000 (+0000) Subject: Fix warning about requesting region. X-Git-Tag: r0_7_62~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12dbf9efd3563f361467787194ab7fd15a4dcbb2;p=comedi.git Fix warning about requesting region. --- diff --git a/comedi/drivers/ssv_dnp.c b/comedi/drivers/ssv_dnp.c index 63ccaa7f..835cd3d8 100644 --- a/comedi/drivers/ssv_dnp.c +++ b/comedi/drivers/ssv_dnp.c @@ -175,15 +175,9 @@ static int dnp_attach(comedi_device *dev,comedi_devconfig *it) printk("attached\n"); - /* allocate I/O ports: */ - /* 0x22: Chip Setup and Control Index Register, CSCIR */ - /* 0x23: Chip Setup and Control Data Register, CSCDR */ - /* XXX: this area seems to be reserved by the first 8259A!?! */ -# warning region should be requested here! -/* - if (check_region(0x22,2)<0) return -EBUSY; - if (request_region(0x22,2,"ssv_dnp")==NULL) return -EBUSY; -*/ + /* We use the I/O ports 0x22,0x23 and 0xa3-0xa9, which are always + * allocated for the primary 8259, so we don't need to allocate them + * ourselves. */ /* configure all ports as input (default) */ outb(PAMR,CSCIR); outb(0x00,CSCDR);