diff options
| author | James Bottomley <jejb@mulgrave.(none)> | 2005-01-31 22:48:17 -0600 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.(none)> | 2005-01-31 22:48:17 -0600 |
| commit | aa4e0186158f90419fb1537b5f283fbfbd8b5fd3 (patch) | |
| tree | c77ba5c65f074d997932c7cce8cde3d267536bd4 /include/linux/attribute_container.h | |
| parent | 3a35ed5184801b53eb89410bfd5feb9a7f8fa600 (diff) | |
Fix missed class_remove_file in attribute_container
This moves attribute addition (and removal) to where it
should have been in the first place, namely in the
attribute_container class.
Without this, the transport classes were leaving dangling
attributes when the devices were removed.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/linux/attribute_container.h')
| -rw-r--r-- | include/linux/attribute_container.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/attribute_container.h b/include/linux/attribute_container.h index 3598f96d4c24..af1010b6dab7 100644 --- a/include/linux/attribute_container.h +++ b/include/linux/attribute_container.h @@ -55,6 +55,18 @@ void attribute_container_device_trigger(struct device *dev, void attribute_container_trigger(struct device *dev, int (*fn)(struct attribute_container *, struct device *)); +int attribute_container_add_attrs(struct class_device *classdev); +int attribute_container_add_class_device(struct class_device *classdev); +int attribute_container_add_class_device_adapter(struct attribute_container *cont, + struct device *dev, + struct class_device *classdev); +void attribute_container_remove_attrs(struct class_device *classdev); +void attribute_container_class_device_del(struct class_device *classdev); + + + + + struct class_device_attribute **attribute_container_classdev_to_attrs(const struct class_device *classdev); |
