mtd: docg3: remove invalid __exit annotations

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Apr 22 10:59:07 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=45fd357a491ecc56c0f9bb110bd05d9caf28889f
Commit:     45fd357a491ecc56c0f9bb110bd05d9caf28889f
Parent:     95d706657311f24407d0f7a0cf79b55904ec6524
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Mar 31 09:53:37 2015 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Sun Apr 5 18:06:44 2015 -0700

    mtd: docg3: remove invalid __exit annotations
    
    The .remove callback may be used when detaching a device via sysfs, so
    we can't expect to free up this memory.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>
---
 drivers/mtd/devices/docg3.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 0310f91..866d319 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -1805,7 +1805,7 @@ static int __init doc_dbg_register(struct docg3 *docg3)
 	}
 }
 
-static void __exit doc_dbg_unregister(struct docg3 *docg3)
+static void doc_dbg_unregister(struct docg3 *docg3)
 {
 	debugfs_remove_recursive(docg3->debugfs_root);
 }
@@ -2100,7 +2100,7 @@ err_probe:
  *
  * Returns 0
  */
-static int __exit docg3_release(struct platform_device *pdev)
+static int docg3_release(struct platform_device *pdev)
 {
 	struct docg3_cascade *cascade = platform_get_drvdata(pdev);
 	struct docg3 *docg3 = cascade->floors[0]->priv;
@@ -2131,7 +2131,7 @@ static struct platform_driver g3_driver = {
 	},
 	.suspend	= docg3_suspend,
 	.resume		= docg3_resume,
-	.remove		= __exit_p(docg3_release),
+	.remove		= docg3_release,
 };
 
 module_platform_driver_probe(g3_driver, docg3_probe);



More information about the linux-mtd-cvs mailing list