[openwrt/openwrt] lantiq: add the missing function pointer ltq_pci_plat_dev_init
LEDE Commits
lede-commits at lists.infradead.org
Fri Jul 18 04:31:45 PDT 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8d45c6d9d2d21c7eb58227c8f8c463d3c7e0e71a
commit 8d45c6d9d2d21c7eb58227c8f8c463d3c7e0e71a
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Tue May 27 22:23:39 2025 +0800
lantiq: add the missing function pointer ltq_pci_plat_dev_init
Partial revert upstream commit 075dd2eef025 ("MIPS: lantiq: Remove
unused function pointer variables") to fix the build error:
mips-openwrt-linux-musl-ld: arch/mips/lantiq/xway/ath5k_eep.o: in function `of_ath5k_eeprom_probe':
arch/mips/lantiq/xway/ath5k_eep.c:(.init.text+0x31c): undefined reference to `ltq_pci_plat_dev_init'
mips-openwrt-linux-musl-ld: arch/mips/lantiq/xway/ath5k_eep.c:(.init.text+0x338): undefined reference to `ltq_pci_plat_dev_init'
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
lantiq: fix vmmc driver build warnings
---
...t-lantiq-wifi-and-ethernet-eeprom-handling.patch | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/target/linux/lantiq/patches-6.12/035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-6.12/035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
index b6abd9f73d..1044b6da28 100644
--- a/target/linux/lantiq/patches-6.12/035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
+++ b/target/linux/lantiq/patches-6.12/035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
@@ -201,6 +201,27 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
+ return !eth_mac_set;
+}
+early_param("ethaddr", setup_ethaddr);
+--- a/arch/mips/pci/fixup-lantiq.c
++++ b/arch/mips/pci/fixup-lantiq.c
+@@ -9,12 +9,18 @@
+ #include <linux/pci.h>
+ #include "ifxmips_pci_common.h"
+
++int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;
++
+ int pcibios_plat_dev_init(struct pci_dev *dev)
+ {
+ #ifdef CONFIG_PCIE_LANTIQ
+ if (pci_find_capability(dev, PCI_CAP_ID_EXP))
+ ifx_pcie_bios_plat_dev_init(dev);
+ #endif
++
++ if (ltq_pci_plat_dev_init)
++ return ltq_pci_plat_dev_init(dev);
++
+ return 0;
+ }
+
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -771,7 +771,11 @@ ltq_etop_init(struct net_device *dev)
More information about the lede-commits
mailing list