From 136d4a06562c84d33834df3eacae8a6bb59b1c07 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 12 Feb 2017 01:24:37 +0100 Subject: [PATCH] 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 --- .../lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch | 2 +- .../lantiq/patches-4.9/0151-lantiq-ifxmips_pcie-use-of.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2