Skip to contentSkip to conversation

crypto: switch to proc_create()

PATCH In review Alexey Dobriyan 2 participants 2 messages Feb 26, 2008 – Mar 5, 2008 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: switch to proc_create()

---

 crypto/proc.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
crypto/proc.c +1 -5
@@ -99,11 +99,7 @@ static const 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);
 }
 
 void __exit crypto_exit_proc(void)
maintainer
#1 lore raw
Quoted 1 line · Alexey Dobriyan

Patch applied to cryptodev-2.6. Thanks a lot.

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt