Commit 44be43c6 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] prpmc750.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I've replaced it 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 c2826904
...@@ -109,7 +109,7 @@ static void __init prpmc750_pcibios_fixup(void) ...@@ -109,7 +109,7 @@ static void __init prpmc750_pcibios_fixup(void)
* resource subsystem doesn't fixup the * resource subsystem doesn't fixup the
* PCI mem resources on the CL5446. * PCI mem resources on the CL5446.
*/ */
if ((dev = pci_find_device(PCI_VENDOR_ID_CIRRUS, if ((dev = pci_get_device(PCI_VENDOR_ID_CIRRUS,
PCI_DEVICE_ID_CIRRUS_5446, 0))) { PCI_DEVICE_ID_CIRRUS_5446, 0))) {
dev->resource[0].start += PRPMC750_PCI_PHY_MEM_OFFSET; dev->resource[0].start += PRPMC750_PCI_PHY_MEM_OFFSET;
dev->resource[0].end += PRPMC750_PCI_PHY_MEM_OFFSET; dev->resource[0].end += PRPMC750_PCI_PHY_MEM_OFFSET;
...@@ -121,6 +121,7 @@ static void __init prpmc750_pcibios_fixup(void) ...@@ -121,6 +121,7 @@ static void __init prpmc750_pcibios_fixup(void)
outb(0x0f, 0x3c4); outb(0x0f, 0x3c4);
/* Set proper DRAM config */ /* Set proper DRAM config */
outb(0xdf, 0x3c5); outb(0xdf, 0x3c5);
pci_dev_put(dev);
} }
} }
......
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