This drops some ancient kernel version switches from patches on
lantiq target. The patch only adjusts the latest kernel 5.4, as
doing it a second time for an older kernel seems a waste of time
for a cosmetic change.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
}
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pci_common.h
}
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pci_common.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pci_common.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pci_common.h
+ \ingroup IFX_PCI_COM
+ \brief PCI/PCIe bus driver common OS header file
+*/
+ \ingroup IFX_PCI_COM
+ \brief PCI/PCIe bus driver common OS header file
+*/
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
-+#define IFX_PCI_CONST
-+#else
+#define IFX_PCI_CONST const
+#define IFX_PCI_CONST const
+#ifdef CONFIG_IFX_PCI
+extern int ifx_pci_bios_map_irq(IFX_PCI_CONST struct pci_dev *dev, u8 slot, u8 pin);
+extern int ifx_pci_bios_plat_dev_init(struct pci_dev *dev);
+#ifdef CONFIG_IFX_PCI
+extern int ifx_pci_bios_map_irq(IFX_PCI_CONST struct pci_dev *dev, u8 slot, u8 pin);
+extern int ifx_pci_bios_plat_dev_init(struct pci_dev *dev);
+
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pcie.h
+
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pcie.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pcie.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pcie.h
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
-+#define IRQF_SHARED SA_SHIRQ
-+#endif
-+
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004
+EXPORT_SYMBOL(pcibios_1st_host_bus_nr);
--- /dev/null
+++ b/arch/mips/pci/pcie-lantiq.h
+EXPORT_SYMBOL(pcibios_1st_host_bus_nr);
--- /dev/null
+++ b/arch/mips/pci/pcie-lantiq.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pcie_reg.h
+/******************************************************************************
+**
+** FILE NAME : ifxmips_pcie_reg.h
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
-+#define IRQF_SHARED SA_SHIRQ
-+#endif
-+
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004