mirror of https://gitee.com/openkylin/linux.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 <muli@il.ibm.com> Cc: Jon Mason <jdmason@kudzu.us> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
448432c4b8
commit
a2b5d87784
|
@ -1232,8 +1232,7 @@ static int __init calgary_init(void)
|
||||||
|
|
||||||
error:
|
error:
|
||||||
do {
|
do {
|
||||||
dev = pci_get_device_reverse(PCI_VENDOR_ID_IBM,
|
dev = pci_get_device(PCI_VENDOR_ID_IBM, PCI_ANY_ID, dev);
|
||||||
PCI_ANY_ID, dev);
|
|
||||||
if (!dev)
|
if (!dev)
|
||||||
break;
|
break;
|
||||||
if (!is_cal_pci_dev(dev->device))
|
if (!is_cal_pci_dev(dev->device))
|
||||||
|
|
Loading…
Reference in New Issue