OSDN Git Service

ipmi: simplify sysctl registration
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:46:07 +0000 (12:46 -0800)
committerCorey Minyard <cminyard@mvista.com>
Thu, 2 Mar 2023 22:16:37 +0000 (16:16 -0600)
commitd352cb47df7540a52bf2d0c33d90694c5cdb6cb8
treec74ffdc192c4a70f7721f0b627231c3543bc6965
parent2a587b9ad052e7e92e508aea90c1e2ae433c1908
ipmi: simplify sysctl registration

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

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Message-Id: <20230302204612.782387-3-mcgrof@kernel.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_poweroff.c