tty: simplify sysctl registration
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:46:11 +0000 (12:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:15:49 +0000 (17:15 +0100)
commit6d12b774c9295a04695d52e38b1517e9a41f9881
tree378e0b3dae6f59b8c3a0737a8b861733a4f3ffb5
parent46ce64bbfe0c84d1cf14fb325c8c7c323cabf3b8
tty: simplify sysctl registration

register_sysctl_table() is a deprecated compatibility wrapper.
register_sysctl_init() can do the directory creation for you so just use
that

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20230302204612.782387-7-mcgrof@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c