Revert "mtd: move mxcnd_remove to .exit.text"
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Dec 7 04:59:01 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=51eeb878155cdea73e7a1f0372b266018bd7a424
Commit: 51eeb878155cdea73e7a1f0372b266018bd7a424
Parent: df0094d7f46d37944aa26b4f6e978b4b2ad252ea
Author: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
AuthorDate: Mon Dec 7 09:44:05 2009 +0000
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Dec 7 09:44:05 2009 +0000
Revert "mtd: move mxcnd_remove to .exit.text"
This reverts commit 82613b0da622efbd24cb7b23eb349966802310f1, because
commit daa0f15 (mtd: don't use __exit_p to wrap mxcnd_remove) is a
better solution. Not having a remove callback breaks rebinding because
resources are not freed on remove.
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/mxc_nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index f7366e9..45dec57 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -861,7 +861,7 @@ eclk:
return err;
}
-static int __exit mxcnd_remove(struct platform_device *pdev)
+static int __devexit mxcnd_remove(struct platform_device *pdev)
{
struct mxc_nand_host *host = platform_get_drvdata(pdev);
More information about the linux-mtd-cvs
mailing list