From: Greg Kroah-Hartman Date: Wed, 13 Feb 2008 17:32:03 +0000 (-0800) Subject: PCI: remove pci_get_device_reverse from calgary driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2b5d877840f29b5fbb5f53b63dfcbf8bc0aea47;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: remove pci_get_device_reverse from calgary driver This isn't needed, we can just walk the devices in bus order with no problems at all, as we really want to remove pci_get_device_reverse from the kernel tree. Acked-by: Muli Ben-Yehuda Cc: Jon Mason Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index 1b5464c2434f..67a3feb90edb 100644 --- a/arch/x86/kernel/pci-calgary_64.c +++ b/arch/x86/kernel/pci-calgary_64.c @@ -1232,8 +1232,7 @@ static int __init calgary_init(void) error: do { - dev = pci_get_device_reverse(PCI_VENDOR_ID_IBM, - PCI_ANY_ID, dev); + dev = pci_get_device(PCI_VENDOR_ID_IBM, PCI_ANY_ID, dev); if (!dev) break; if (!is_cal_pci_dev(dev->device))