Skip to content

Commit df746b3

Browse files
bjorn-helgaasgregkh
authored andcommitted
misc: rtsx: Remove unused pcie_cap
There are no more uses of struct rtsx_pcr.pcie_cap. Remove it. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20200721212336.1159079-3-helgaas@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ff36dc6 commit df746b3

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/misc/cardreader/rtsx_pcr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,6 @@ static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
12531253
rtsx_pci_write_register(pcr, RTS5228_LDO1_CFG1, RTS5228_LDO1_SR_TIME_MASK,
12541254
RTS5228_LDO1_SR_0_5);
12551255

1256-
pcr->pcie_cap = pci_find_capability(pcr->pci, PCI_CAP_ID_EXP);
12571256
rtsx_pci_writel(pcr, RTSX_HCBAR, pcr->host_cmds_addr);
12581257

12591258
rtsx_pci_enable_bus_int(pcr);

‎include/linux/rtsx_pci.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ struct rtsx_hw_param {
11661166
struct rtsx_pcr {
11671167
struct pci_dev *pci;
11681168
unsigned int id;
1169-
int pcie_cap;
11701169
struct rtsx_cr_option option;
11711170
struct rtsx_hw_param hw_param;
11721171

0 commit comments

Comments
 (0)