diff options
author | Rakib Mullick <rakib.mullick@gmail.com> | 2009-04-18 22:56:49 -0400 |
---|---|---|
committer | Samuel Ortiz <sameol@linux.intel.com> | 2009-06-17 13:41:27 -0400 |
commit | 04ffa1316ba47e5cea9dc2f01efbb67f9de36bc9 (patch) | |
tree | 2de22436f661e419aa82d3ca3e1e050a4c91161c /drivers/mfd | |
parent | 489bd34e76260fa73882bd97e5516a8f55651b3a (diff) |
mfd: Mark clocks_init as non-init in twl4030-core.c
Impact: Fix section mismatch.
clocks_init() has been called from twl4030_probe() which is a non-init
function. Since probing can be done anytime so clocks_init will be
called anytime too. So we mark clock_init() as non-init.
LD drivers/mfd/built-in.o
WARNING: drivers/mfd/built-in.o(.text+0x8dd9): Section mismatch in
reference from the function twl4030_probe() to the function
.init.text:clocks_init()
The function twl4030_probe() references
the function __init clocks_init().
This is often because twl4030_probe lacks a __init
annotation or the annotation of clocks_init is wrong.
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/twl4030-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c index ec90e953adce..cd1008c19cd7 100644 --- a/drivers/mfd/twl4030-core.c +++ b/drivers/mfd/twl4030-core.c | |||
@@ -647,7 +647,7 @@ static inline int __init unprotect_pm_master(void) | |||
647 | return e; | 647 | return e; |
648 | } | 648 | } |
649 | 649 | ||
650 | static void __init clocks_init(struct device *dev) | 650 | static void clocks_init(struct device *dev) |
651 | { | 651 | { |
652 | int e = 0; | 652 | int e = 0; |
653 | struct clk *osc; | 653 | struct clk *osc; |