Commit 3b1261fb authored by Arnd Bergmann's avatar Arnd Bergmann

bus: imx-weim: remove incorrect __init annotations

The probe function is no longer __init, so anything it calls now
must also be available at runtime, as Kbuild points out when building
with clang-9:

WARNING: vmlinux.o(.text+0x6e7040): Section mismatch in reference from the function weim_probe() to the function .init.text:imx_weim_gpr_setup()
The function weim_probe() references
the function __init imx_weim_gpr_setup().
This is often because weim_probe lacks a __init
annotation or the annotation of imx_weim_gpr_setup is wrong.

WARNING: vmlinux.o(.text+0x6e70f0): Section mismatch in reference from the function weim_probe() to the function .init.text:weim_timing_setup()
The function weim_probe() references
the function __init weim_timing_setup().
This is often because weim_probe lacks a __init
annotation or the annotation of weim_timing_setup is wrong.

Remove the remaining __init markings that are now wrong.

Fixes: 4a92f078 ("bus: imx-weim: use module_platform_driver()")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent c7b46e0c
...@@ -76,7 +76,7 @@ static const struct of_device_id weim_id_table[] = { ...@@ -76,7 +76,7 @@ static const struct of_device_id weim_id_table[] = {
}; };
MODULE_DEVICE_TABLE(of, weim_id_table); MODULE_DEVICE_TABLE(of, weim_id_table);
static int __init imx_weim_gpr_setup(struct platform_device *pdev) static int imx_weim_gpr_setup(struct platform_device *pdev)
{ {
struct device_node *np = pdev->dev.of_node; struct device_node *np = pdev->dev.of_node;
struct property *prop; struct property *prop;
...@@ -126,10 +126,10 @@ static int __init imx_weim_gpr_setup(struct platform_device *pdev) ...@@ -126,10 +126,10 @@ static int __init imx_weim_gpr_setup(struct platform_device *pdev)
} }
/* Parse and set the timing for this device. */ /* Parse and set the timing for this device. */
static int __init weim_timing_setup(struct device *dev, static int weim_timing_setup(struct device *dev,
struct device_node *np, void __iomem *base, struct device_node *np, void __iomem *base,
const struct imx_weim_devtype *devtype, const struct imx_weim_devtype *devtype,
struct cs_timing_state *ts) struct cs_timing_state *ts)
{ {
u32 cs_idx, value[MAX_CS_REGS_COUNT]; u32 cs_idx, value[MAX_CS_REGS_COUNT];
int i, ret; int i, ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment