[PATCH] MTD: NAND: fsl_elbc_nand: fix section mismatch between probe and remove
Scott Wood
scottwood at freescale.com
Fri Jun 6 11:10:34 EDT 2008
On Fri, Jun 06, 2008 at 06:59:40PM +0400, Anton Vorontsov wrote:
> WARNING: drivers/mtd/nand/built-in.o(.devinit.text+0x114): Section mismatch
> in reference from the function fsl_elbc_ctrl_probe() to the function
> .devexit.text:fsl_elbc_ctrl_remove()
>
> __devinit functions should not call functions with __devexit. Since probe
> function calls remove in case of errors, we want to remove __devexit
> attribute from it.
>
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
Acked-by: Scott Wood <scottwood at freescale.com>
-Scott
More information about the linux-mtd
mailing list