Don't need request_mem_region(). I think.
authorDavid Schleef <ds@schleef.org>
Wed, 15 May 2002 19:06:58 +0000 (19:06 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 15 May 2002 19:06:58 +0000 (19:06 +0000)
comedi/drivers/mite.c

index 9b2beafd6233860aeb7cf2d55db27b6332742ab2..cb238fa017f78bb6137e5b85d21ee1532b5f65d7 100644 (file)
@@ -108,18 +108,12 @@ int mite_setup(struct mite_struct *mite)
                return -EIO;
        }
        pci_set_master(mite->pcidev);
-       addr=pci_resource_start(mite->pcidev, 0);
 
-       mite->mite_phys_addr=addr;
+       addr = pci_resource_start(mite->pcidev, 0);
+       mite->mite_phys_addr = addr;
        offset = mite->mite_phys_addr & ~PAGE_MASK;
        start = mite->mite_phys_addr & PAGE_MASK;
        length = PCI_MITE_SIZE + offset;
-       // check and request io memory region
-       if(request_mem_region(start, length, "mite")){
-
-               printk("io memory region already in use\n");
-               return -EIO;
-       }
        mite->mite_io_addr = ioremap(start, length) + offset;
        printk("MITE:0x%08lx mapped to %p ",mite->mite_phys_addr,mite->mite_io_addr);
 
@@ -128,12 +122,6 @@ int mite_setup(struct mite_struct *mite)
        offset = mite->daq_phys_addr & ~PAGE_MASK;
        start = mite->daq_phys_addr & PAGE_MASK;
        length = PCI_DAQ_SIZE + offset;
-       // check and request io memory region
-       if(request_mem_region(start, length, "mite")){
-
-               printk("io memory region already in use\n");
-               return -EIO;
-       }
        mite->daq_io_addr = ioremap(start, length) + offset;
        printk("DAQ:0x%08lx mapped to %p\n",mite->daq_phys_addr,mite->daq_io_addr);