diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-10-15 22:30:35 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-10-16 19:21:07 +0300 |
commit | 81c2b807c8c278575f4e6618bcc04d21aee215e9 (patch) | |
tree | b17e4df1a8071125741a59e10d1f1a0514644f0a /drivers/pci/pcie | |
parent | ecdf57b4f6748f3cb89eaf2ffdc9cfae4829f493 (diff) | |
download | linux-81c2b807c8c278575f4e6618bcc04d21aee215e9.tar.xz |
PCI/ASPM: Remove struct aspm_register_info.l1ss_ctl2 (unused)
We never use the aspm_register_info.l1ss_ctl2 value, so remove it. No
functional change intended.
Link: https://lore.kernel.org/r/20201015193039.12585-9-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/aspm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 77316262f982..3afa6c418f54 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -386,14 +386,13 @@ struct aspm_register_info { /* L1 substates */ u32 l1ss_cap; u32 l1ss_ctl1; - u32 l1ss_ctl2; }; static void pcie_get_aspm_reg(struct pci_dev *pdev, struct aspm_register_info *info) { /* Read L1 PM substate capabilities */ - info->l1ss_cap = info->l1ss_ctl1 = info->l1ss_ctl2 = 0; + info->l1ss_cap = info->l1ss_ctl1 = 0; if (!pdev->l1ss) return; @@ -407,8 +406,6 @@ static void pcie_get_aspm_reg(struct pci_dev *pdev, pci_read_config_dword(pdev, pdev->l1ss + PCI_L1SS_CTL1, &info->l1ss_ctl1); - pci_read_config_dword(pdev, pdev->l1ss + PCI_L1SS_CTL2, - &info->l1ss_ctl2); } static void pcie_aspm_check_latency(struct pci_dev *endpoint) |