X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsparc64%2Fsolaris%2Fsocksys.c;h=fc6669e8dde189640a053c40f629e63720795d9c;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=bc3df95bc05773b9a74419c6692f342dd9005120;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/sparc64/solaris/socksys.c b/arch/sparc64/solaris/socksys.c index bc3df95bc..fc6669e8d 100644 --- a/arch/sparc64/solaris/socksys.c +++ b/arch/sparc64/solaris/socksys.c @@ -26,6 +26,7 @@ #include #include #include +#include #include @@ -189,6 +190,8 @@ init_socksys(void) return ret; } + devfs_mk_cdev(MKDEV(30, 0), S_IFCHR|S_IRUSR|S_IWUSR, "socksys"); + file = fcheck(ret); /* N.B. Is this valid? Suppose the f_ops are in a module ... */ socksys_file_ops = *file->f_op; @@ -204,4 +207,5 @@ cleanup_socksys(void) { if (unregister_chrdev(30, "socksys")) printk ("Couldn't unregister socksys character device\n"); + devfs_remove ("socksys"); }