From: Bjorn Helgaas <[email protected]>

There are no more uses of struct rtsx_pcr.pcie_cap.  Remove it.

Signed-off-by: Bjorn Helgaas <[email protected]>
---
 drivers/misc/cardreader/rtsx_pcr.c | 1 -
 include/linux/rtsx_pci.h           | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/misc/cardreader/rtsx_pcr.c 
b/drivers/misc/cardreader/rtsx_pcr.c
index 6a4d6c8f4e71..169505165a52 100644
--- a/drivers/misc/cardreader/rtsx_pcr.c
+++ b/drivers/misc/cardreader/rtsx_pcr.c
@@ -1234,7 +1234,6 @@ static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
        struct pci_dev *pdev = pcr->pci;
        int err;
 
-       pcr->pcie_cap = pci_find_capability(pcr->pci, PCI_CAP_ID_EXP);
        rtsx_pci_writel(pcr, RTSX_HCBAR, pcr->host_cmds_addr);
 
        rtsx_pci_enable_bus_int(pcr);
diff --git a/include/linux/rtsx_pci.h b/include/linux/rtsx_pci.h
index e8780d4e4636..b1071c80fffc 100644
--- a/include/linux/rtsx_pci.h
+++ b/include/linux/rtsx_pci.h
@@ -1158,7 +1158,6 @@ struct rtsx_hw_param {
 struct rtsx_pcr {
        struct pci_dev                  *pci;
        unsigned int                    id;
-       int                             pcie_cap;
        struct rtsx_cr_option   option;
        struct rtsx_hw_param hw_param;
 
-- 
2.25.1

Reply via email to