[MTD] [NAND] fsl_elbc_nand: fix section mismatch between probe and remove
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 6 Jun 2008 14:59:40 +0000 (18:59 +0400)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 7 Jun 2008 07:36:19 +0000 (08:36 +0100)
commitaa83570e23e626fe8dd1253f17e6d175507025f1
tree7ab55a0290265e5d4e6213613d14dac745dbc213
parent4474573a90bae41351fad576fa80c424d62be567
[MTD] [NAND] fsl_elbc_nand: fix section mismatch between probe and remove

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@ru.mvista.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/fsl_elbc_nand.c