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

Commit 55679df3 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by David Woodhouse
Browse files

[MTD] [NAND] fsl_elbc_nand: fix section mismatch with CONFIG_MTD_OF_PARTS=y



With CONFIG_MTD_OF_PARTS=y I'm getting this new section mismatch in reference
from the function fsl_elbc_chip_probe() to the function
.devinit.text:of_mtd_parse_partitions()

This patch fixes the mismatch by providing __devinit annotation to the
fsl_elbc_chip_probe() function.

Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-By: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 0533400b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -836,7 +836,7 @@ static int fsl_elbc_chip_remove(struct fsl_elbc_mtd *priv)
	return 0;
}

static int fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
					 struct device_node *node)
{
	struct fsl_lbc_regs __iomem *lbc = ctrl->regs;