projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a10c2a
)
PCI: Use pci_is_pcie() to simplify code
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 5 Sep 2013 07:55:29 +0000
(15:55 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 23 Sep 2013 23:30:03 +0000
(17:30 -0600)
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>
drivers/pci/probe.c
patch
|
blob
|
history
diff --git
a/drivers/pci/probe.c
b/drivers/pci/probe.c
index
7ef0f86
..
c90d0f8
100644
(file)
--- 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;