mtd: OneNAND: add missing __devexit_p

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jun 5 14:59:17 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d3412dbd721c0136379d86242297d19399f0c05f
Commit:     d3412dbd721c0136379d86242297d19399f0c05f
Parent:     ab1ff210a86ae4ab5990b7bd2dc69fafbfa2355a
Author:     Mika Korhonen <mika.j.korhonen at gmail.com>
AuthorDate: Thu May 21 23:09:42 2009 +0300
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jun 5 18:10:35 2009 +0100

    mtd: OneNAND: add missing __devexit_p
    
    Add missing __devexit_p wrapper and no more mark shutdown with __devexit.
    Fixes build in configurations where devexit functions get discarded.
    
    Signed-off-by: Mika Korhonen <mika.j.korhonen at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/onenand/omap2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index f2e9de1..df26db8 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -566,7 +566,7 @@ int omap2_onenand_rephase(void)
 				      NULL, __adjust_timing);
 }
 
-static void __devexit omap2_onenand_shutdown(struct platform_device *pdev)
+static void omap2_onenand_shutdown(struct platform_device *pdev)
 {
 	struct omap2_onenand *c = dev_get_drvdata(&pdev->dev);
 
@@ -778,7 +778,7 @@ static int __devexit omap2_onenand_remove(struct platform_device *pdev)
 
 static struct platform_driver omap2_onenand_driver = {
 	.probe		= omap2_onenand_probe,
-	.remove		= omap2_onenand_remove,
+	.remove		= __devexit_p(omap2_onenand_remove),
 	.shutdown	= omap2_onenand_shutdown,
 	.driver		= {
 		.name	= DRIVER_NAME,



More information about the linux-mtd-cvs mailing list