Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch

This commit is contained in:
Brian Behlendorf 2009-01-09 16:32:42 -08:00
commit 5d1dbd4c77
1 changed files with 15 additions and 2 deletions

View File

@ -3247,13 +3247,26 @@ _fini(void)
} }
#ifdef HAVE_SPL #ifdef HAVE_SPL
int
__init(void)
{
int rc;
rc = _init();
if (!rc)
printk(KERN_INFO "ZFS: Loaded v%s\n", VERSION);
return rc;
}
void void
__fini(void) __fini(void)
{ {
_fini(); (void)_fini();
printk(KERN_INFO "ZFS: Unloaded v%s\n", VERSION);
} }
module_init(_init); module_init(__init);
module_exit(__fini); module_exit(__fini);
MODULE_AUTHOR("Sun Microsystems, Inc"); MODULE_AUTHOR("Sun Microsystems, Inc");