From 12dbf9efd3563f361467787194ab7fd15a4dcbb2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 30 Dec 2001 07:46:23 +0000 Subject: [PATCH] Fix warning about requesting region. --- comedi/drivers/ssv_dnp.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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); -- 2.26.2