diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-06-06 10:59:40 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-06-07 03:36:19 -0400 |
commit | aa83570e23e626fe8dd1253f17e6d175507025f1 (patch) | |
tree | 7ab55a0290265e5d4e6213613d14dac745dbc213 | |
parent | 4474573a90bae41351fad576fa80c424d62be567 (diff) |
[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>
-rw-r--r-- | drivers/mtd/nand/fsl_elbc_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index 4b69aacdf5ca..1b06d29dd06b 100644 --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c | |||
@@ -917,7 +917,7 @@ static int __devinit fsl_elbc_ctrl_init(struct fsl_elbc_ctrl *ctrl) | |||
917 | return 0; | 917 | return 0; |
918 | } | 918 | } |
919 | 919 | ||
920 | static int __devexit fsl_elbc_ctrl_remove(struct of_device *ofdev) | 920 | static int fsl_elbc_ctrl_remove(struct of_device *ofdev) |
921 | { | 921 | { |
922 | struct fsl_elbc_ctrl *ctrl = dev_get_drvdata(&ofdev->dev); | 922 | struct fsl_elbc_ctrl *ctrl = dev_get_drvdata(&ofdev->dev); |
923 | int i; | 923 | int i; |
@@ -1041,7 +1041,7 @@ static struct of_platform_driver fsl_elbc_ctrl_driver = { | |||
1041 | }, | 1041 | }, |
1042 | .match_table = fsl_elbc_match, | 1042 | .match_table = fsl_elbc_match, |
1043 | .probe = fsl_elbc_ctrl_probe, | 1043 | .probe = fsl_elbc_ctrl_probe, |
1044 | .remove = __devexit_p(fsl_elbc_ctrl_remove), | 1044 | .remove = fsl_elbc_ctrl_remove, |
1045 | }; | 1045 | }; |
1046 | 1046 | ||
1047 | static int __init fsl_elbc_init(void) | 1047 | static int __init fsl_elbc_init(void) |