diff options
author | Tony Lindgren <tony@atomide.com> | 2012-03-07 21:54:24 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-07 23:03:44 -0500 |
commit | 6028505c29dc89a3140df64a53d0d12038a87fed (patch) | |
tree | 315161adba9e311f6b3fe0f2c4913d59d152aeac | |
parent | 9cf793f9b8b1ba9414e2a7591b2e911885f85a27 (diff) |
ARM: OMAP2+: Fix section warnings for hsmmc_init_one
Otherwise we can get the following error depending on
the compiler:
WARNING: arch/arm/mach-omap2/built-in.o(.text+0xafe0):
Section mismatch in reference from the function omap_hsmmc_init_one()
to the function .init.text:omap_hsmmc_pdata_init()
The function omap_hsmmc_init_one() references
the function __init omap_hsmmc_pdata_init().
This is often because omap_hsmmc_init_one lacks a __init
annotation or the annotation of omap_hsmmc_pdata_init is wrong.
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/hsmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c index a97876da7fad..8121720e942f 100644 --- a/arch/arm/mach-omap2/hsmmc.c +++ b/arch/arm/mach-omap2/hsmmc.c | |||
@@ -465,7 +465,7 @@ void omap_hsmmc_late_init(struct omap2_hsmmc_info *c) | |||
465 | 465 | ||
466 | #define MAX_OMAP_MMC_HWMOD_NAME_LEN 16 | 466 | #define MAX_OMAP_MMC_HWMOD_NAME_LEN 16 |
467 | 467 | ||
468 | static void omap_hsmmc_init_one(struct omap2_hsmmc_info *hsmmcinfo, | 468 | static void __init omap_hsmmc_init_one(struct omap2_hsmmc_info *hsmmcinfo, |
469 | int ctrl_nr) | 469 | int ctrl_nr) |
470 | { | 470 | { |
471 | struct omap_hwmod *oh; | 471 | struct omap_hwmod *oh; |