From: Hauke Mehrtens Date: Sun, 12 Feb 2017 00:24:37 +0000 (+0100) Subject: lantiq: fix section mismatch in PCIe driver X-Git-Tag: v18.06.0-rc1~3674 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=136d4a06562c84d33834df3eacae8a6bb59b1c07;p=oweals%2Fopenwrt.git lantiq: fix section mismatch in PCIe driver Do not put the probe function into the __init section, but use the normal section. This fixes a section mismatch warning. Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch b/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch index 75f1bfbcf0..03d43c241f 100644 --- a/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch +++ b/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch @@ -46,7 +46,7 @@ } -static int __init ifx_pcie_bios_init(void) -+static int __init ifx_pcie_bios_probe(struct platform_device *pdev) ++static int ifx_pcie_bios_probe(struct platform_device *pdev) { + struct device_node *node = pdev->dev.of_node; void __iomem *io_map_base; diff --git a/target/linux/lantiq/patches-4.9/0151-lantiq-ifxmips_pcie-use-of.patch b/target/linux/lantiq/patches-4.9/0151-lantiq-ifxmips_pcie-use-of.patch index 75f1bfbcf0..03d43c241f 100644 --- a/target/linux/lantiq/patches-4.9/0151-lantiq-ifxmips_pcie-use-of.patch +++ b/target/linux/lantiq/patches-4.9/0151-lantiq-ifxmips_pcie-use-of.patch @@ -46,7 +46,7 @@ } -static int __init ifx_pcie_bios_init(void) -+static int __init ifx_pcie_bios_probe(struct platform_device *pdev) ++static int ifx_pcie_bios_probe(struct platform_device *pdev) { + struct device_node *node = pdev->dev.of_node; void __iomem *io_map_base;