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
This commit is contained in:
Shaun Ruffell 2012-03-15 15:41:32 +00:00
parent 2da38234d6
commit 07c9bcecf2

View File

@ -642,7 +642,7 @@ cleanup:
return res; return res;
} }
void __exit dahdi_sysfs_exit(void) void dahdi_sysfs_exit(void)
{ {
dahdi_sysfs_cleanup(); dahdi_sysfs_cleanup();
} }