Messages in this thread Patch in this message | | | From | Yijing Wang <> | Subject | [PATCH v2 5/6] PCI: use pci_is_pcie() to simplify code | Date | Thu, 5 Sep 2013 15:55:29 +0800 |
| |
Use pci_is_pcie() instead of pci_find_capability to simplify code.
Signed-off-by: Yijing Wang <wangyijing@huawei.com> --- drivers/pci/probe.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index eeb50bd..0fa9075 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -641,8 +641,7 @@ static void pci_set_bus_speed(struct pci_bus *bus) return; } - pos = pci_find_capability(bridge, PCI_CAP_ID_EXP); - if (pos) { + if (pci_is_pcie(bridge)) { u32 linkcap; u16 linksta; -- 1.7.1
| |