mtd: don't use __exit_p to wrap mxcnd_remove

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 30 05:59:10 EST 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=daa0f15a8dc6ef81655c7853f84a3670be7d144a
Commit:     daa0f15a8dc6ef81655c7853f84a3670be7d144a
Parent:     8fead79c96c68164372c47c7b3c79d2da0871c93
Author:     Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
AuthorDate: Tue Nov 24 22:07:08 2009 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 10:02:24 2009 +0000

    mtd: don't use __exit_p to wrap mxcnd_remove
    
    The function mxcnd_remove is defined using __devexit, so don't use
    __exit_p but __devexit_p to wrap it.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    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 06c5314..4bc43eb 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1099,7 +1099,7 @@ static struct platform_driver mxcnd_driver = {
 	.driver = {
 		   .name = DRIVER_NAME,
 		   },
-	.remove = __exit_p(mxcnd_remove),
+	.remove = __devexit_p(mxcnd_remove),
 	.suspend = mxcnd_suspend,
 	.resume = mxcnd_resume,
 };



More information about the linux-mtd-cvs mailing list