From patchwork Mon Dec 24 00:01:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] arm: omap2: gpmc-onenand: drop __init annotation Date: Sun, 23 Dec 2012 14:01:19 -0000 From: Ezequiel Garcia X-Patchwork-Id: 207997 Message-Id: <1356307280-8323-2-git-send-email-ezequiel.garcia@free-electrons.com> To: , , Cc: Thomas Petazzoni , martinez.javier@gmail.com, matthias.bgg@googlemail.com, eballetbo@gmail.com, zonque@gmail.com, grant.likely@secretlab.ca, jon-hunter@ti.com, Ezequiel Garcia , b-cousson@ti.com gpmc_onenand_init() will be called from another driver's probe() function, so drop the __init annotation, in order to prevent section mismatches. Signed-off-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc-onenand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c index 94a349e..fadd8743 100644 --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c @@ -356,7 +356,7 @@ static int gpmc_onenand_setup(void __iomem *onenand_base, int *freq_ptr) return ret; } -void __init gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data) +void gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data) { int err;