powerpc/cacheinfo: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jan 2022 15:54:50 +0000 (16:54 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Jan 2022 23:58:23 +0000 (10:58 +1100)
commit2bdf3f9e9df0a4ce7709fc916b9997ca2dc30d25
tree1ac48e7c6e6b8bc9d71038062be52526f27e183c
parent08035a67f35a8765cac39bb12e56c61ee880227a
powerpc/cacheinfo: use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the powerpc cacheinfo sysfs code to use default_groups
field which has been the preferred way since aa30f47cf666 ("kobject: Add
support for default attribute groups to kobj_type") so that we can soon
get rid of the obsolete default_attrs field.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220104155450.1291277-1-gregkh@linuxfoundation.org
arch/powerpc/kernel/cacheinfo.c