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@hauke-m.de>
master
Hauke Mehrtens 8 years ago
parent 2eed1179be
commit 136d4a0656
  1. 2
      target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch
  2. 2
      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_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; + struct device_node *node = pdev->dev.of_node;
void __iomem *io_map_base; void __iomem *io_map_base;

@ -46,7 +46,7 @@
} }
-static int __init ifx_pcie_bios_init(void) -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; + struct device_node *node = pdev->dev.of_node;
void __iomem *io_map_base; void __iomem *io_map_base;

Loading…
Cancel
Save