fsl_elbc_nand: fix section mismatch with CONFIG_MTD_OF_PARTS=y
Subsystems (2)
PATCH 1/1 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 Anton Vorontsov <[email protected]>
--- drivers/mtd/nand/fsl_elbc_nand.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/nand/fsl_elbc_nand.c +2 -2
@@ -836,8 +836,8 @@ static int fsl_elbc_chip_remove(struct fsl_elbc_mtd *priv)return 0 ; } -static int fsl_elbc_chip_probe (struct fsl_elbc_ctrl *ctrl, -struct device_node *node) +static int __devinit fsl_elbc_chip_probe (struct fsl_elbc_ctrl *ctrl, +struct device_node *node) {struct fsl_lbc_regs __iomem *lbc = ctrl->regs;struct fsl_elbc_mtd *priv;
Signature · 1 line
1.5.5.4
Quoted 8 lines · Anton Vorontsov
With
CONFIG_MTD_OF_PARTS=yI'm getting this new section mismatch in reference from the functionfsl_elbc_chip_probe()to the function .devinit.text:of_mtd_parse_partitions()This patch fixes the mismatch by providing
__devinitannotation to thefsl_elbc_chip_probe()function.Signed-off-by Anton Vorontsov <[email protected]>
ACK
-Scott