aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-06 07:04:15 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:34 +0200
commitb93d2d7c38bc98cee49c76acc7523b43cb4f25f7 (patch)
tree7eaa0115eebda200991559c26590e9cd4dc9f13d /target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch
parent1f8c8bca5ea77c79850ea6b0b95204ccade69495 (diff)
downloadupstream-b93d2d7c38bc98cee49c76acc7523b43cb4f25f7.tar.gz
upstream-b93d2d7c38bc98cee49c76acc7523b43cb4f25f7.tar.bz2
upstream-b93d2d7c38bc98cee49c76acc7523b43cb4f25f7.zip
ath79: 5.15: drop unused res variable from pci ar724x OF convert patch
Drop unused res variable from pci ar724x OF convert patch fixing compilation warning: arch/mips/pci/pci-ar724x.c: In function 'ar724x_pci_probe': arch/mips/pci/pci-ar724x.c:387:26: error: unused variable 'res' [-Werror=unused-variable] 387 | struct resource *res; | ^~~ cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch')
-rw-r--r--target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch b/target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch
index 2772c53392..7927c1cbf5 100644
--- a/target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch
+++ b/target/linux/ath79/patches-5.15/0020-MIPS-pci-ar724x-convert-to-OF.patch
@@ -154,7 +154,15 @@ Signed-off-by: John Crispin <john@phrozen.org>
irq_set_chained_handler_and_data(apc->irq, ar724x_pci_irq_handler,
apc);
}
-@@ -388,29 +396,11 @@ static int ar724x_pci_probe(struct platf
+@@ -360,7 +368,6 @@ static void ar724x_pci_hw_init(struct ar
+ static int ar724x_pci_probe(struct platform_device *pdev)
+ {
+ struct ar724x_pci_controller *apc;
+- struct resource *res;
+ int id;
+
+ id = pdev->id;
+@@ -388,29 +395,11 @@ static int ar724x_pci_probe(struct platf
if (apc->irq < 0)
return -EINVAL;
@@ -186,7 +194,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
/*
* Do the full PCIE Root Complex Initialization Sequence if the PCIe
-@@ -432,10 +422,16 @@ static int ar724x_pci_probe(struct platf
+@@ -432,10 +421,16 @@ static int ar724x_pci_probe(struct platf
return 0;
}