OSDN Git Service

PCI/sysfs: Use default_groups in kobj_type for slot attrs
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 13:57:22 +0000 (14:57 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 29 Dec 2021 19:42:04 +0000 (13:42 -0600)
commit0cf948aab9a0049456d9a498af3da6b403e2a0ed
tree78bcbb3c521fb49149568807b171a791dfc888ba
parent877fee2a0c65a3b0b6ac0e90d7d7718b5a0341d3
PCI/sysfs: Use default_groups in kobj_type for slot attrs

There are currently two ways to create a set of sysfs files for a
kobj_type: through the default_attrs field, and the default_groups field.
Move the PCI slot code to use the 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/20211228135722.381023-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/slot.c