Fix warning about requesting region.
authorDavid Schleef <ds@schleef.org>
Sun, 30 Dec 2001 07:46:23 +0000 (07:46 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 30 Dec 2001 07:46:23 +0000 (07:46 +0000)
comedi/drivers/ssv_dnp.c

index 63ccaa7fd107d00404be146b0737b0640fdd0662..835cd3d8d25bd25c3edce532cb7e898c77d6abc6 100644 (file)
@@ -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);