summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2018-01-07 12:14:18 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:27:22 +0100
commit48520f8cfaa57839b2f516c2204524165b602181 (patch)
treeffca53e8105d6c014912b95d90d0deee2ffe3236
parentb070ed04c3fb1b643ea50f2a270b1793e4a5f2f5 (diff)
staging: ccree: tag debugfs init/exit func properly
The debugfs global init and exit functions were missing __init and __exit tags, potentially wasting memory. Fix it by properly tagging them. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ccree/cc_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c
index ab2c9862053f..72eb2b39b16d 100644
--- a/drivers/staging/ccree/cc_debugfs.c
+++ b/drivers/staging/ccree/cc_debugfs.c
@@ -38,14 +38,14 @@ static struct debugfs_reg32 debug_regs[] = {
CC_DEBUG_REG(AXIM_MON_COMP),
};
-int cc_debugfs_global_init(void)
+int __init cc_debugfs_global_init(void)
{
cc_debugfs_dir = debugfs_create_dir("ccree", NULL);
return !cc_debugfs_dir;
}
-void cc_debugfs_global_fini(void)
+void __exit cc_debugfs_global_fini(void)
{
debugfs_remove(cc_debugfs_dir);
}