Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 504f3c6d authored by Daniel Mack's avatar Daniel Mack Committed by Tony Lindgren
Browse files

ARM: OMAP: gpmc-nand: drop __init annotation



gpmc_nand_init() will be called from another driver's probe() function,
so the easiest way to prevent section mismatches is to drop the
annotation here.

Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ccf04c51
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -89,7 +89,7 @@ static int omap2_nand_gpmc_retime(
	return 0;
	return 0;
}
}


static bool __init gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
{
{
	/* support only OMAP3 class */
	/* support only OMAP3 class */
	if (!cpu_is_omap34xx()) {
	if (!cpu_is_omap34xx()) {
@@ -110,7 +110,7 @@ static bool __init gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
	return 1;
	return 1;
}
}


int __init gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data,
int gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data,
		   struct gpmc_timings *gpmc_t)
		   struct gpmc_timings *gpmc_t)
{
{
	int err	= 0;
	int err	= 0;