diff mbox series

[4/8] pci: pci_mvebu: Remove unused functions

Message ID 20211022142215.26484-5-pali@kernel.org
State Accepted
Commit 452f2e73c6e9a9f9c2cd928e5f2fde819b9c91f0
Delegated to: Stefan Roese
Headers show
Series pci: pci_mvebu: Fix access to config space and PCIe Root Port | expand

Commit Message

Pali Rohár Oct. 22, 2021, 2:22 p.m. UTC
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 <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
---
 drivers/pci/pci_mvebu.c | 16 ----------------
 1 file changed, 16 deletions(-)

Comments

Stefan Roese Nov. 2, 2021, 10:47 a.m. UTC | #1
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 <pali@kernel.org>
> Reviewed-by: Marek Behún <marek.behun@nic.cz>

Reviewed-by: Stefan Roese <sr@denx.de>

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
diff mbox series

Patch

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);