Commit 9acc8a77 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] k2.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I have replaced this call with
pci_get_device.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 8a5cf25b
...@@ -116,7 +116,7 @@ void k2_pcibios_fixup(void) ...@@ -116,7 +116,7 @@ void k2_pcibios_fixup(void)
/* /*
* Enable DMA support on hdc * 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); PCI_DEVICE_ID_AL_M5229, NULL);
if (ide_dev) { if (ide_dev) {
...@@ -126,6 +126,7 @@ void k2_pcibios_fixup(void) ...@@ -126,6 +126,7 @@ void k2_pcibios_fixup(void)
ide_dma_base = pci_resource_start(ide_dev, 4); ide_dma_base = pci_resource_start(ide_dev, 4);
outb(0x00, ide_dma_base + 0x2); outb(0x00, ide_dma_base + 0x2);
outb(0x20, ide_dma_base + 0xa); outb(0x20, ide_dma_base + 0xa);
pci_dev_put(ide_dev);
} }
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment