[source] lantiq: fix section mismatch in PCIe driver

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 11 16:29:58 PST 2017


hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/136d4a06562c84d33834df3eacae8a6bb59b1c07

commit 136d4a06562c84d33834df3eacae8a6bb59b1c07
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Feb 12 01:24:37 2017 +0100

    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 <hauke at hauke-m.de>
---
 target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch | 2 +-
 target/linux/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 75f1bfb..03d43c2 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 75f1bfb..03d43c2 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;



More information about the lede-commits mailing list