diff options
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 0929ae3e7830..454853507b7e 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -135,6 +135,7 @@ store_new_id(struct device_driver *driver, const char *buf, size_t count) | |||
135 | return retval; | 135 | return retval; |
136 | return count; | 136 | return count; |
137 | } | 137 | } |
138 | static DRIVER_ATTR(new_id, S_IWUSR, NULL, store_new_id); | ||
138 | 139 | ||
139 | /** | 140 | /** |
140 | * store_remove_id - remove a PCI device ID from this driver | 141 | * store_remove_id - remove a PCI device ID from this driver |
@@ -180,12 +181,14 @@ store_remove_id(struct device_driver *driver, const char *buf, size_t count) | |||
180 | return retval; | 181 | return retval; |
181 | return count; | 182 | return count; |
182 | } | 183 | } |
184 | static DRIVER_ATTR(remove_id, S_IWUSR, NULL, store_remove_id); | ||
183 | 185 | ||
184 | static struct driver_attribute pci_drv_attrs[] = { | 186 | static struct attribute *pci_drv_attrs[] = { |
185 | __ATTR(new_id, S_IWUSR, NULL, store_new_id), | 187 | &driver_attr_new_id.attr, |
186 | __ATTR(remove_id, S_IWUSR, NULL, store_remove_id), | 188 | &driver_attr_remove_id.attr, |
187 | __ATTR_NULL, | 189 | NULL, |
188 | }; | 190 | }; |
191 | ATTRIBUTE_GROUPS(pci_drv); | ||
189 | 192 | ||
190 | /** | 193 | /** |
191 | * pci_match_id - See if a pci device matches a given pci_id table | 194 | * pci_match_id - See if a pci device matches a given pci_id table |
@@ -1315,9 +1318,9 @@ struct bus_type pci_bus_type = { | |||
1315 | .probe = pci_device_probe, | 1318 | .probe = pci_device_probe, |
1316 | .remove = pci_device_remove, | 1319 | .remove = pci_device_remove, |
1317 | .shutdown = pci_device_shutdown, | 1320 | .shutdown = pci_device_shutdown, |
1318 | .dev_attrs = pci_dev_attrs, | 1321 | .dev_groups = pci_dev_groups, |
1319 | .bus_attrs = pci_bus_attrs, | 1322 | .bus_groups = pci_bus_groups, |
1320 | .drv_attrs = pci_drv_attrs, | 1323 | .drv_groups = pci_drv_groups, |
1321 | .pm = PCI_PM_OPS_PTR, | 1324 | .pm = PCI_PM_OPS_PTR, |
1322 | }; | 1325 | }; |
1323 | 1326 | ||