powerpc: Simplify sysctl registration for powersave_nap_ctl_table
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 10 Mar 2023 23:28:49 +0000 (15:28 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Mar 2023 04:18:12 +0000 (15:18 +1100)
commitbfedee5dc406ddcd70d667be1501659f1b232b7f
tree8c386ec93b22718ef8a0ece28e2fed34a7e4c047
parent0aafbdf35c75cbfec82636d01e6dc7950bc1507c
powerpc: Simplify sysctl registration for powersave_nap_ctl_table

There is no need to declare an extra tables to just create directory,
this can be easily be done with a prefix path with register_sysctl().

Simplify this registration.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230310232850.3960676-2-mcgrof@kernel.org
arch/powerpc/kernel/idle.c