Skip to contentSkip to conversation

PCI: tegra: Remove unused struct tegra_pcie_bus

PATCH Applied Krzysztof Wilczyński 2 participants 2 messages Jul 4, 2021 – Jul 23, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: tegra: Remove unused struct tegra_pcie_bus

Following the code refactoring completed in the commit 1fd92928bab5 ("PCI: tegra: Refactor configuration space mapping code") there are no more known users of struct tegra_pcie_bus.

Thus, remove declaration of struct tegra_pcie_bus as it's no longer needed and does not have any existing users left.

---
 drivers/pci/controller/pci-tegra.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/pci/controller/pci-tegra.c +0 -5
index 8069bd9232d4..64adb3fc22d6 100644
@@ -372,11 +372,6 @@ struct tegra_pcie_port {
 	struct gpio_desc *reset_gpio;
 };
 
-struct tegra_pcie_bus {
-	struct list_head list;
-	unsigned int nr;
-};
-
 static inline void afi_writel(struct tegra_pcie *pcie, u32 value,
 			      unsigned long offset)
 {
Signature · 1 line
2.32.0
#1 lore raw
Quoted 6 lines · Krzysztof Wilczyński

Following the code refactoring completed in the commit 1fd92928bab5 ("PCI: tegra: Refactor configuration space mapping code") there are no more known users of struct tegra_pcie_bus.

Thus, remove declaration of struct tegra_pcie_bus as it's no longer needed and does not have any existing users left.

Applied to pci/tegra, thanks!

[1/1] PCI: tegra: Remove unused struct tegra_pcie_bus

      https://git.kernel.org/lpieralisi/pci/c/6310a1526a

Thanks,
Lorenzo