diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-05 21:25:02 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-06 02:59:34 -0400 |
commit | bcc8edb52f05c1a9e75118d6b3bc04996a750593 (patch) | |
tree | 440c098c1f2dcae1470d32076b3a488de8852ece /include/linux/device.h | |
parent | 3124eb1679b28726eacbc8973a891235dca3ed99 (diff) |
driver core: remove dev_attrs from struct class
Now that all in-kernel users of the dev_attrs field are converted to use
dev_groups, we can safely remove dev_attrs from struct class.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index e7f5b8585380..9ffe8561df75 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -325,7 +325,6 @@ int subsys_virtual_register(struct bus_type *subsys, | |||
325 | * @owner: The module owner. | 325 | * @owner: The module owner. |
326 | * @class_attrs: Default attributes of this class. | 326 | * @class_attrs: Default attributes of this class. |
327 | * @dev_groups: Default attributes of the devices that belong to the class. | 327 | * @dev_groups: Default attributes of the devices that belong to the class. |
328 | * @dev_attrs: Default attributes of the devices belong to the class. | ||
329 | * @dev_bin_attrs: Default binary attributes of the devices belong to the class. | 328 | * @dev_bin_attrs: Default binary attributes of the devices belong to the class. |
330 | * @dev_kobj: The kobject that represents this class and links it into the hierarchy. | 329 | * @dev_kobj: The kobject that represents this class and links it into the hierarchy. |
331 | * @dev_uevent: Called when a device is added, removed from this class, or a | 330 | * @dev_uevent: Called when a device is added, removed from this class, or a |
@@ -354,7 +353,6 @@ struct class { | |||
354 | struct module *owner; | 353 | struct module *owner; |
355 | 354 | ||
356 | struct class_attribute *class_attrs; | 355 | struct class_attribute *class_attrs; |
357 | struct device_attribute *dev_attrs; /* use dev_groups instead */ | ||
358 | const struct attribute_group **dev_groups; | 356 | const struct attribute_group **dev_groups; |
359 | struct bin_attribute *dev_bin_attrs; | 357 | struct bin_attribute *dev_bin_attrs; |
360 | struct kobject *dev_kobj; | 358 | struct kobject *dev_kobj; |