Skip to content

Commit

Permalink
sparc/PCI: Use pci_is_bridge() to simplify code
Browse files Browse the repository at this point in the history
Use pci_is_bridge() to simplify code.  No functional change.

Requires: 326c1cd PCI: Rename pci_is_bridge() to pci_has_subordinate()
Requires: 1c86438 PCI: Add new pci_is_bridge() interface
Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: David S. Miller <[email protected]>
  • Loading branch information
YijingWang authored and bjorn-helgaas committed May 27, 2014
1 parent c888770 commit 2f22e68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,7 @@ static void pci_of_scan_bus(struct pci_pbm_info *pbm,
printk("PCI: dev header type: %x\n",
dev->hdr_type);

if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE ||
dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)
if (pci_is_bridge(dev))
of_scan_pci_bridge(pbm, child, dev);
}
}
Expand Down

0 comments on commit 2f22e68

Please sign in to comment.