aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-07 16:51:02 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-10-07 16:51:02 -0400
commit0f49ba5599048aae2fb3479a1814736e969cf38c (patch)
tree0214bd107097ff13cf176834169154378498ee08 /drivers/pci/pci-sysfs.c
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
PCI: convert bus code to use bus_groups
The bus_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the PCI bus code to use the correct field. Cc: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 7128cfdd64aa..d8eb880bd1fc 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -302,10 +302,20 @@ static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf,
302 } 302 }
303 return count; 303 return count;
304} 304}
305static BUS_ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, bus_rescan_store);
305 306
306struct bus_attribute pci_bus_attrs[] = { 307struct attribute *pci_bus_attrs[] = {
307 __ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, bus_rescan_store), 308 &bus_attr_rescan.attr,
308 __ATTR_NULL 309 NULL,
310};
311
312static const struct attribute_group pci_bus_group = {
313 .attrs = pci_bus_attrs,
314};
315
316const struct attribute_group *pci_bus_groups[] = {
317 &pci_bus_group,
318 NULL,
309}; 319};
310 320
311static ssize_t 321static ssize_t