1 diff -Naur a/drivers/ide/pci/aec62xx.c b/drivers/ide/pci/aec62xx.c
2 --- a/drivers/ide/pci/aec62xx.c 2007-10-12 18:43:44.000000000 +0200
3 +++ b/drivers/ide/pci/aec62xx.c 2007-11-14 14:12:51.000000000 +0100
6 static int __devinit init_setup_aec6x80(struct pci_dev *dev, ide_pci_device_t *d)
8 - unsigned long dma_base = pci_resource_start(dev, 4);
9 + unsigned long dma_base;
12 + err = pci_enable_device(dev);
16 + dma_base = pci_resource_start(dev, 4);
18 if (inb(dma_base + 2) & 0x10) {
19 d->name = (dev->device == PCI_DEVICE_ID_ARTOP_ATP865R) ?
21 d->udma_mask = 0x7f; /* udma0-6 */
24 - return ide_setup_pci_device(dev, d);
25 + err = ide_setup_pci_device(dev, d);
27 + pci_disable_device(dev);
32 static ide_pci_device_t aec62xx_chipsets[] __devinitdata = {