]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/rtl8192u/ieee80211/proc.c
Merge branch 'vfree' into for-next
[karo-tx-linux.git] / drivers / staging / rtl8192u / ieee80211 / proc.c
index 6eda928e4090559c74d82fb3e2bbd52cb2f970ab..c426dfdd9fddf54587876519046e51a8acca3d2e 100644 (file)
@@ -99,7 +99,7 @@ static int crypto_info_open(struct inode *inode, struct file *file)
        return seq_open(file, &crypto_seq_ops);
 }
 
-static struct file_operations proc_crypto_ops = {
+static const struct file_operations proc_crypto_ops = {
        .open           = crypto_info_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -108,9 +108,5 @@ static struct file_operations proc_crypto_ops = {
 
 void __init crypto_init_proc(void)
 {
-       struct proc_dir_entry *proc;
-
-       proc = create_proc_entry("crypto", 0, NULL);
-       if (proc)
-               proc->proc_fops = &proc_crypto_ops;
+       proc_create("crypto", 0, NULL, &proc_crypto_ops);
 }