]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
misc: rtsx: Remove unused pcie_cap
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Jul 2020 21:23:33 +0000 (16:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 11:24:12 +0000 (13:24 +0200)
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>
drivers/misc/cardreader/rtsx_pcr.c
include/linux/rtsx_pci.h

index 6d76929f31f5149e22a2360847b06ddc6eb1dc89..0c0f1dd6f00ff3ec80d53429ff5c0dab23c920fb 100644 (file)
@@ -1253,7 +1253,6 @@ static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
                rtsx_pci_write_register(pcr, RTS5228_LDO1_CFG1, RTS5228_LDO1_SR_TIME_MASK,
                                RTS5228_LDO1_SR_0_5);
 
-       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);
index 27a6ea82aeeae20a027cb26829fc05e26fb2f8ff..4ff7b221f36ea6b1e295f2d2f2d96f86ef5ec846 100644 (file)
@@ -1166,7 +1166,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;