aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-03-31 12:53:37 -0400
committerBrian Norris <computersforpeace@gmail.com>2015-04-05 21:06:44 -0400
commit45fd357a491ecc56c0f9bb110bd05d9caf28889f (patch)
treeade6862ccff5157c5df3d9dce0347a63490e278b
parent95d706657311f24407d0f7a0cf79b55904ec6524 (diff)
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@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
-rw-r--r--drivers/mtd/devices/docg3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 0310f9174dcc..866d31904475 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)
1805 } 1805 }
1806} 1806}
1807 1807
1808static void __exit doc_dbg_unregister(struct docg3 *docg3) 1808static void doc_dbg_unregister(struct docg3 *docg3)
1809{ 1809{
1810 debugfs_remove_recursive(docg3->debugfs_root); 1810 debugfs_remove_recursive(docg3->debugfs_root);
1811} 1811}
@@ -2100,7 +2100,7 @@ err_probe:
2100 * 2100 *
2101 * Returns 0 2101 * Returns 0
2102 */ 2102 */
2103static int __exit docg3_release(struct platform_device *pdev) 2103static int docg3_release(struct platform_device *pdev)
2104{ 2104{
2105 struct docg3_cascade *cascade = platform_get_drvdata(pdev); 2105 struct docg3_cascade *cascade = platform_get_drvdata(pdev);
2106 struct docg3 *docg3 = cascade->floors[0]->priv; 2106 struct docg3 *docg3 = cascade->floors[0]->priv;
@@ -2131,7 +2131,7 @@ static struct platform_driver g3_driver = {
2131 }, 2131 },
2132 .suspend = docg3_suspend, 2132 .suspend = docg3_suspend,
2133 .resume = docg3_resume, 2133 .resume = docg3_resume,
2134 .remove = __exit_p(docg3_release), 2134 .remove = docg3_release,
2135}; 2135};
2136 2136
2137module_platform_driver_probe(g3_driver, docg3_probe); 2137module_platform_driver_probe(g3_driver, docg3_probe);