firmware: memmap: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 17:56:50 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 18:17:29 +0000 (19:17 +0100)
commitf54dfdf7c625aad722a7d1508f99e8272bc4800c
tree9ee8638a62c2c2887fd495c3e4b55a2f359bc1ae
parent99a6a4b39575b39c34fc024400b25a52343fbe07
firmware: memmap: 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 firmware memmap 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.

Link: https://lore.kernel.org/r/20220105175650.2640758-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/memmap.c