Skip to content

Commit

Permalink
PCI: remove pci_get_device_reverse from calgary driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Jon Mason <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Apr 21, 2008
1 parent 448432c commit a2b5d87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/pci-calgary_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a2b5d87

Please sign in to comment.