Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C620FC433F5 for ; Tue, 2 Nov 2021 10:47:42 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3CF2C60E74 for ; Tue, 2 Nov 2021 10:47:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3CF2C60E74 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C649983201; Tue, 2 Nov 2021 11:47:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635850060; bh=8CO8tHMGW8WgVFtaqdyHyjPY8XHb00jL6qMQ6ncAaUc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=UlukDul2Ka/IlWbHHw6v5U5EZxmEaakGui8NkkNk2ywuqiqQowPJYO9t9rTzP5Yk3 0TQk2psfitAeJJuDKFmja8R/OT+B7tVxPVa0n0OO4TfXTOnhlaYAyJiyX5o5pfBWoa 4HIDSU+DT/t0fplOE+MSPSzjMlPiizyr8boYsJFe7Gu9Q2qPHM/am4ldS+xBx5c6Vg IhKbaCzLpKkjRUwmmpnpBe2na6v8RgndQpPeZsop3CNLXFBsLbnX1MsAgxA17de62U iuLUJlxMQkWF2dV5RKfjPWSK1W1+7YZCzEOMUqSZWBNHQkD6oz9RPOoTEwHT01k4fC dtGrxQyX1f1AA== Received: by phobos.denx.de (Postfix, from userid 109) id 8C7DD83383; Tue, 2 Nov 2021 11:47:38 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3E32D835FD for ; Tue, 2 Nov 2021 11:47:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (unknown [91.198.250.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4Hk66s12fkzQkBW; Tue, 2 Nov 2021 11:47:33 +0100 (CET) Subject: Re: [PATCH 4/8] pci: pci_mvebu: Remove unused functions To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de References: <20211022142215.26484-1-pali@kernel.org> <20211022142215.26484-5-pali@kernel.org> From: Stefan Roese Message-ID: Date: Tue, 2 Nov 2021 11:47:29 +0100 MIME-Version: 1.0 In-Reply-To: <20211022142215.26484-5-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1DBEA1838 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 22.10.21 16:22, Pali Rohár wrote: > Functions mvebu_pcie_get_local_bus_nr() and mvebu_pcie_get_local_dev_nr() > are not used, so remove them. > > Signed-off-by: Pali Rohár > Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/pci/pci_mvebu.c | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c > index 244dcc8fb050..4b8e56f22dfa 100644 > --- a/drivers/pci/pci_mvebu.c > +++ b/drivers/pci/pci_mvebu.c > @@ -126,22 +126,6 @@ static void mvebu_pcie_set_local_dev_nr(struct mvebu_pcie *pcie, int devno) > writel(stat, pcie->base + PCIE_STAT_OFF); > } > > -static int mvebu_pcie_get_local_bus_nr(struct mvebu_pcie *pcie) > -{ > - u32 stat; > - > - stat = readl(pcie->base + PCIE_STAT_OFF); > - return (stat & PCIE_STAT_BUS) >> 8; > -} > - > -static int mvebu_pcie_get_local_dev_nr(struct mvebu_pcie *pcie) > -{ > - u32 stat; > - > - stat = readl(pcie->base + PCIE_STAT_OFF); > - return (stat & PCIE_STAT_DEV) >> 16; > -} > - > static inline struct mvebu_pcie *hose_to_pcie(struct pci_controller *hose) > { > return container_of(hose, struct mvebu_pcie, hose); > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de