commit | fdfe151127a75de037c7e32cef110ae9c7c5e3c8 | [log] [tgz] |
---|---|---|
author | Yijing Wang <wangyijing@huawei.com> | Thu Sep 05 15:55:29 2013 +0800 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Mon Sep 23 17:30:03 2013 -0600 |
tree | 8f83ed292e1c2dda47dbb6795e893ea51322d954 | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 [diff] [blame] |
PCI: Use pci_is_pcie() to simplify code Use pci_is_pcie() instead of pci_find_capability() to simplify code. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 7ef0f86..c90d0f8 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c
@@ -641,8 +641,7 @@ return; } - pos = pci_find_capability(bridge, PCI_CAP_ID_EXP); - if (pos) { + if (pci_is_pcie(bridge)) { u32 linkcap; u16 linksta;