/*
* Enable DMA support on hdc
*/
- ide_dev = pci_find_device(PCI_VENDOR_ID_AL,
+ ide_dev = pci_get_device(PCI_VENDOR_ID_AL,
PCI_DEVICE_ID_AL_M5229, NULL);
if (ide_dev) {
ide_dma_base = pci_resource_start(ide_dev, 4);
outb(0x00, ide_dma_base + 0x2);
outb(0x20, ide_dma_base + 0xa);
+ pci_dev_put(ide_dev);
}
#endif
}