tools headers UAPI: Sync linux/prctl.h with the kernel sources
[linux-2.6-microblaze.git] / fs / afs / main.c
index accdd89..b297525 100644 (file)
@@ -193,7 +193,7 @@ static int __init afs_init(void)
                goto error_cache;
 #endif
 
-       ret = register_pernet_subsys(&afs_net_ops);
+       ret = register_pernet_device(&afs_net_ops);
        if (ret < 0)
                goto error_net;
 
@@ -213,7 +213,7 @@ static int __init afs_init(void)
 error_proc:
        afs_fs_exit();
 error_fs:
-       unregister_pernet_subsys(&afs_net_ops);
+       unregister_pernet_device(&afs_net_ops);
 error_net:
 #ifdef CONFIG_AFS_FSCACHE
        fscache_unregister_netfs(&afs_cache_netfs);
@@ -244,7 +244,7 @@ static void __exit afs_exit(void)
 
        proc_remove(afs_proc_symlink);
        afs_fs_exit();
-       unregister_pernet_subsys(&afs_net_ops);
+       unregister_pernet_device(&afs_net_ops);
 #ifdef CONFIG_AFS_FSCACHE
        fscache_unregister_netfs(&afs_cache_netfs);
 #endif