diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-04 00:23:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 16:57:47 -0400 |
commit | 2f22e68ab4447a8e3491c09b616a565202eb322f (patch) | |
tree | 1f1fbfe2c8b4b3ed962888a648d3ea1fc03bca7e | |
parent | c888770eb2c9fcc5e735965237759ffbe3a3eee9 (diff) |
sparc/PCI: Use pci_is_bridge() to simplify code
Use pci_is_bridge() to simplify code. No functional change.
Requires: 326c1cdae741 PCI: Rename pci_is_bridge() to pci_has_subordinate()
Requires: 1c86438c9423 PCI: Add new pci_is_bridge() interface
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 1555bbcae1ee..857ad77df9c0 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -543,8 +543,7 @@ static void pci_of_scan_bus(struct pci_pbm_info *pbm, | |||
543 | printk("PCI: dev header type: %x\n", | 543 | printk("PCI: dev header type: %x\n", |
544 | dev->hdr_type); | 544 | dev->hdr_type); |
545 | 545 | ||
546 | if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || | 546 | if (pci_is_bridge(dev)) |
547 | dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) | ||
548 | of_scan_pci_bridge(pbm, child, dev); | 547 | of_scan_pci_bridge(pbm, child, dev); |
549 | } | 548 | } |
550 | } | 549 | } |