From patchwork Tue Jul 21 21:23:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 11676773 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BA1A618 for ; Tue, 21 Jul 2020 21:24:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E66312073A for ; Tue, 21 Jul 2020 21:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595366640; bh=ajSaAeF2n7h94VHdL4uWUGlYN0WyGAIis5MfUlWwmP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=LIJ00yt2VBUVgPprPBCiTbry5KUSqY3csS//Hx3iKiHSZJg/eRaGlKHv8e4umd4NQ OprHIHVKN4NC0eYEKxYnp2A8U7m2r2PABvEZ+qilIZFHxkfTfkEAeqs+ZhhzUXEsuh IQif9U3Xfqc8ij+h+xFdzuT5NuB804HEktE4sTkg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731181AbgGUVYA (ORCPT ); Tue, 21 Jul 2020 17:24:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:42650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731217AbgGUVX7 (ORCPT ); Tue, 21 Jul 2020 17:23:59 -0400 Received: from localhost (mobile-166-175-191-139.mycingular.net [166.175.191.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0885F2072E; Tue, 21 Jul 2020 21:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595366639; bh=ajSaAeF2n7h94VHdL4uWUGlYN0WyGAIis5MfUlWwmP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H/ZR+ZcPViUCvb3a1csLlqWzupg0vM/RX6nw+mRD9UnE06WzyUUd39rGMR2e9lugH fpiyGIlABT0VyKTaEGw1rJNdjs6JcH0JvUlwLFz30ZvrseTKLYJ7wsa6NTXDDK3F1w QftBuXdBOb2nM0Pc7lvpSSCGlYDuSm8gqe4hMwDE= From: Bjorn Helgaas To: Ricky Wu Cc: Arnd Bergmann , Greg Kroah-Hartman , Ulf Hansson , Rui Feng , Klaus Doth , Linus Walleij , Rui Miguel Silva , Puranjay Mohan , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Bjorn Helgaas Subject: [PATCH 2/5] misc: rtsx: Remove unused pcie_cap Date: Tue, 21 Jul 2020 16:23:33 -0500 Message-Id: <20200721212336.1159079-3-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721212336.1159079-1-helgaas@kernel.org> References: <20200721212336.1159079-1-helgaas@kernel.org> MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Bjorn Helgaas There are no more uses of struct rtsx_pcr.pcie_cap. Remove it. Signed-off-by: Bjorn Helgaas --- 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;