summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-09-04 09:19:56 -0400
committerArnd Bergmann <arnd@arndb.de>2019-09-04 11:59:32 -0400
commit3b1261fb72c7dc6a9e4604ef1ea01d6bb67cc3d1 (patch)
tree53edfc0aade487d5c5a8af08c864879c8aa58c13
parentc7b46e0c33c594623a279db4e1725d7ae477280f (diff)
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: 4a92f07816ba ("bus: imx-weim: use module_platform_driver()") Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--drivers/bus/imx-weim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
index 79af0c27f5a3..28bb65a5613f 100644
--- a/drivers/bus/imx-weim.c
+++ b/drivers/bus/imx-weim.c
@@ -76,7 +76,7 @@ static const struct of_device_id weim_id_table[] = {
76}; 76};
77MODULE_DEVICE_TABLE(of, weim_id_table); 77MODULE_DEVICE_TABLE(of, weim_id_table);
78 78
79static int __init imx_weim_gpr_setup(struct platform_device *pdev) 79static int imx_weim_gpr_setup(struct platform_device *pdev)
80{ 80{
81 struct device_node *np = pdev->dev.of_node; 81 struct device_node *np = pdev->dev.of_node;
82 struct property *prop; 82 struct property *prop;
@@ -126,10 +126,10 @@ err:
126} 126}
127 127
128/* Parse and set the timing for this device. */ 128/* Parse and set the timing for this device. */
129static int __init weim_timing_setup(struct device *dev, 129static int weim_timing_setup(struct device *dev,
130 struct device_node *np, void __iomem *base, 130 struct device_node *np, void __iomem *base,
131 const struct imx_weim_devtype *devtype, 131 const struct imx_weim_devtype *devtype,
132 struct cs_timing_state *ts) 132 struct cs_timing_state *ts)
133{ 133{
134 u32 cs_idx, value[MAX_CS_REGS_COUNT]; 134 u32 cs_idx, value[MAX_CS_REGS_COUNT];
135 int i, ret; 135 int i, ret;