diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-03-08 02:03:56 +0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2012-03-13 00:41:33 +0400 |
commit | 30c766bdeccf945615097ca185326c1d7199f023 (patch) | |
tree | 316f72066633738b10790e047e1723aaa17bc448 /arch/arm/mach-davinci/da850.c | |
parent | d870df6827d883e213811cdcc3f8d3b64dfa8ff8 (diff) | |
download | linux-30c766bdeccf945615097ca185326c1d7199f023.tar.xz |
ARM: davinci: DA850: move da850_register_pm to .init.text
All callers (board-mityomapl138.c and board-da850-evm.c) use it in
__init functions only.
This fixes:
WARNING: vmlinux.o(.text+0xd664): Section mismatch in reference from the function da850_register_pm() to the function .init.text:da8xx_get_mem_ctlr()
The function da850_register_pm() references
the function __init da8xx_get_mem_ctlr().
This is often because da850_register_pm lacks a __init
annotation or the annotation of da8xx_get_mem_ctlr is wrong.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 992c4c410185..b44dc844e15e 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -1026,7 +1026,7 @@ static int da850_round_armrate(struct clk *clk, unsigned long rate) } #endif -int da850_register_pm(struct platform_device *pdev) +int __init da850_register_pm(struct platform_device *pdev) { int ret; struct davinci_pm_config *pdata = pdev->dev.platform_data; |