diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-08-28 14:03:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-08-28 22:51:39 -0400 |
commit | fed2451512495f0f0820ac9e53936bd208569bc8 (patch) | |
tree | f541bf4df3f26fed4d21b42ccdd55a98bdace3bf /drivers/pci/access.c | |
parent | 6d3a1741f1e648cfbd5a0cc94477a0d5004c6f5e (diff) |
PCI: Remove pcie_cap_has_devctl()
pcie_cap_has_devctl() does nothing, so remove it. Simplicity over
consistency in this case. No functional change.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-By: Jiang Liu <jiang.liu@huawei.com>
Diffstat (limited to 'drivers/pci/access.c')
-rw-r--r-- | drivers/pci/access.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/access.c b/drivers/pci/access.c index 061da8c3ab4b..0857ca981fae 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c | |||
@@ -475,11 +475,6 @@ static inline int pcie_cap_version(const struct pci_dev *dev) | |||
475 | return pcie_caps_reg(dev) & PCI_EXP_FLAGS_VERS; | 475 | return pcie_caps_reg(dev) & PCI_EXP_FLAGS_VERS; |
476 | } | 476 | } |
477 | 477 | ||
478 | static inline bool pcie_cap_has_devctl(const struct pci_dev *dev) | ||
479 | { | ||
480 | return true; | ||
481 | } | ||
482 | |||
483 | static inline bool pcie_cap_has_lnkctl(const struct pci_dev *dev) | 478 | static inline bool pcie_cap_has_lnkctl(const struct pci_dev *dev) |
484 | { | 479 | { |
485 | int type = pci_pcie_type(dev); | 480 | int type = pci_pcie_type(dev); |
@@ -521,7 +516,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos) | |||
521 | case PCI_EXP_DEVCAP: | 516 | case PCI_EXP_DEVCAP: |
522 | case PCI_EXP_DEVCTL: | 517 | case PCI_EXP_DEVCTL: |
523 | case PCI_EXP_DEVSTA: | 518 | case PCI_EXP_DEVSTA: |
524 | return pcie_cap_has_devctl(dev); | 519 | return true; |
525 | case PCI_EXP_LNKCAP: | 520 | case PCI_EXP_LNKCAP: |
526 | case PCI_EXP_LNKCTL: | 521 | case PCI_EXP_LNKCTL: |
527 | case PCI_EXP_LNKSTA: | 522 | case PCI_EXP_LNKSTA: |