summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-03-15 15:41:32 +0000
committerShaun Ruffell <sruffell@digium.com>2012-03-15 15:41:32 +0000
commit24fbb7f7b5cb7e3e8eb2b6b6c013738f0eb0e5b9 (patch)
tree56bcfc8b93e8920db829d455d72956a3203a8b69
parent01e8269c009b4ab8033ebe89d2260254f20327af (diff)
dahdi: Remove __exit annotation from dahdi_sysfs_exit().
This removes the following warning: Section mismatch in reference from the function init_module() to the function .exit.text:dahdi_sysfs_exit() The function __init init_module() references a function __exit dahdi_sysfs_exit(). This is often seen when error handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of dahdi_sysfs_exit() so it may be used outside an exit section. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10483 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/dahdi-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-sysfs.c b/drivers/dahdi/dahdi-sysfs.c
index 95f07a7..81d6af8 100644
--- a/drivers/dahdi/dahdi-sysfs.c
+++ b/drivers/dahdi/dahdi-sysfs.c
@@ -642,7 +642,7 @@ cleanup:
return res;
}
-void __exit dahdi_sysfs_exit(void)
+void dahdi_sysfs_exit(void)
{
dahdi_sysfs_cleanup();
}