Skip to contentSkip to conversation

fsl_elbc_nand: fix section mismatch with CONFIG_MTD_OF_PARTS=y

PATCH In review Anton Vorontsov 2 participants 2 messages Jul 14, 2008 – Jul 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/mtd/nand/fsl_elbc_nand.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/nand/fsl_elbc_nand.c +2 -2
index d6d1ff5..9dff513 100644
@@ -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
#1 lore raw
Quoted 8 lines · Anton Vorontsov

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.

ACK

-Scott