mfd: Mark clocks_init as non-init in twl4030-core.c
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 30 lines · Rakib Mullick
Impact: Fix section mismatch.
clocks_init()has been called fromtwl4030_probe()which is a non-init function. Since probing can be done anytime soclocks_initwill be called anytime too. So we markclock_init()as non-init.LD
drivers/mfd/built-in.o
WARNING: drivers/mfd/built-in.o(.text+0x8dd9): Section mismatch in reference from the functiontwl4030_probe()to the function .init.text:clocks_init()
The functiontwl4030_probe()references
the function__initclocks_init().
This is often becausetwl4030_probelacks a__initannotation or the annotation ofclocks_initis wrong.---
Signed-off-by Rakib Mullick <[email protected]>drivers/mfd/twl4030-core.c +1
-1@@ -649,7 +649,7 @@ static inline int __init unprotect_pm_mareturn e; } -static void __init clocks_init (struct device *dev) +static void clocks_init (struct device *dev) {int e =0 ;struct clk *osc;