[SPARC64]: Fix section-mismatch errors in solaris emul module.

init_socksys() was marked __init but invoked from a
non-__init function.

Use the correct module_{init,exit}() faciltiies while we're
here and eliminate some seriously bogus ifdefs.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2006-09-25 14:00:45 -07:00
parent a6d967a485
commit a4c0291aa9
2 changed files with 6 additions and 20 deletions

View File

@@ -168,8 +168,7 @@ static struct file_operations socksys_fops = {
.release = socksys_release,
};
int __init
init_socksys(void)
int __init init_socksys(void)
{
int ret;
struct file * file;
@@ -199,8 +198,7 @@ init_socksys(void)
return 0;
}
void
cleanup_socksys(void)
void __exit cleanup_socksys(void)
{
if (unregister_chrdev(30, "socksys"))
printk ("Couldn't unregister socksys character device\n");