aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-09-30 17:10:35 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:50 -0700
commitb38bf6a4e3bb321b1e4fad1be5a77faf22dcdcbc (patch)
tree77dae8179b678c1fd2832d8ce96b9855f95c18a1 /module
parentbb4dee3df2a191032201ce7f367be12fd898e08d (diff)
Remove register_sysctl() compatibility code
The register_sysctl() interface has been stable since Linux 2.6.21. There is no longer a need to maintain compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
index b4be84fef..3559c95bf 100644
--- a/module/spl/spl-proc.c
+++ b/module/spl/spl-proc.c
@@ -1127,7 +1127,7 @@ spl_proc_init(void)
SENTRY;
#ifdef CONFIG_SYSCTL
- spl_header = spl_register_sysctl_table(spl_root, 0);
+ spl_header = register_sysctl_table(spl_root);
if (spl_header == NULL)
SRETURN(-EUNATCH);
#endif /* CONFIG_SYSCTL */
@@ -1160,7 +1160,7 @@ out:
#endif
remove_proc_entry("spl", NULL);
#ifdef CONFIG_SYSCTL
- spl_unregister_sysctl_table(spl_header);
+ unregister_sysctl_table(spl_header);
#endif /* CONFIG_SYSCTL */
}
@@ -1181,7 +1181,7 @@ spl_proc_fini(void)
#ifdef CONFIG_SYSCTL
ASSERT(spl_header != NULL);
- spl_unregister_sysctl_table(spl_header);
+ unregister_sysctl_table(spl_header);
#endif /* CONFIG_SYSCTL */
SEXIT;