diff options
Diffstat (limited to 'drivers/ide/pci/trm290.c')
-rw-r--r-- | drivers/ide/pci/trm290.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c index 47265030f87d..0677ab016ef8 100644 --- a/drivers/ide/pci/trm290.c +++ b/drivers/ide/pci/trm290.c | |||
@@ -257,16 +257,10 @@ static void __devinit init_hwif_trm290(ide_hwif_t *hwif) | |||
257 | printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx", | 257 | printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx", |
258 | hwif->name, hwif->dma_base, hwif->dma_base + 3); | 258 | hwif->name, hwif->dma_base, hwif->dma_base + 3); |
259 | 259 | ||
260 | if (!request_region(hwif->dma_base, 4, hwif->name)) { | ||
261 | printk(KERN_CONT " -- Error, ports in use.\n"); | ||
262 | return; | ||
263 | } | ||
264 | |||
265 | hwif->dmatable_cpu = pci_alloc_consistent(dev, PRD_ENTRIES * PRD_BYTES, | 260 | hwif->dmatable_cpu = pci_alloc_consistent(dev, PRD_ENTRIES * PRD_BYTES, |
266 | &hwif->dmatable_dma); | 261 | &hwif->dmatable_dma); |
267 | if (!hwif->dmatable_cpu) { | 262 | if (!hwif->dmatable_cpu) { |
268 | printk(KERN_CONT " -- Error, unable to allocate DMA table.\n"); | 263 | printk(KERN_CONT " -- Error, unable to allocate DMA table.\n"); |
269 | release_region(hwif->dma_base, 4); | ||
270 | return; | 264 | return; |
271 | } | 265 | } |
272 | printk(KERN_CONT "\n"); | 266 | printk(KERN_CONT "\n"); |