From: David Schleef Date: Wed, 15 May 2002 19:06:58 +0000 (+0000) Subject: Don't need request_mem_region(). I think. X-Git-Tag: r0_7_65~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a26e52da916fd5c136d1cde83446ec18308cc883;p=comedi.git Don't need request_mem_region(). I think. --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 9b2beafd..cb238fa0 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -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);