diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 14:36:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 14:36:30 -0400 |
commit | ab69bcd66fb4be64edfc767365cb9eb084961246 (patch) | |
tree | f7623585aee58978fc7814460fff517ec39138f2 /include/linux/sysfs.h | |
parent | c513b67e68787eceafeede32bcd0edbee45c0006 (diff) | |
parent | 6937e8f8c0135f2325194c372ada6dc655499992 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (28 commits)
driver core: device_rename's new_name can be const
sysfs: Remove owner field from sysfs struct attribute
powerpc/pci: Remove owner field from attribute initialization in PCI bridge init
regulator: Remove owner field from attribute initialization in regulator core driver
leds: Remove owner field from attribute initialization in bd2802 driver
scsi: Remove owner field from attribute initialization in ARCMSR driver
scsi: Remove owner field from attribute initialization in LPFC driver
cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
Driver core: Add BUS_NOTIFY_BIND_DRIVER
driver core: fix memory leak on one error path in bus_register()
debugfs: no longer needs to depend on SYSFS
sysfs: Fix one more signature discrepancy between sysfs implementation and docs.
sysfs: fix discrepancies between implementation and documentation
dcdbas: remove a redundant smi_data_buf_free in dcdbas_exit
dmi-id: fix a memory leak in dmi_id_init error path
sysfs: sysfs_chmod_file's attr can be const
firmware: Update hotplug script
Driver core: move platform device creation helpers to .init.text (if MODULE=n)
Driver core: reduce duplicated code for platform_device creation
Driver core: use kmemdup in platform_device_add_resources
...
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index f2694eb4dd3d..3c92121ba9af 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -22,14 +22,8 @@ struct kobject; | |||
22 | struct module; | 22 | struct module; |
23 | enum kobj_ns_type; | 23 | enum kobj_ns_type; |
24 | 24 | ||
25 | /* FIXME | ||
26 | * The *owner field is no longer used. | ||
27 | * x86 tree has been cleaned up. The owner | ||
28 | * attribute is still left for other arches. | ||
29 | */ | ||
30 | struct attribute { | 25 | struct attribute { |
31 | const char *name; | 26 | const char *name; |
32 | struct module *owner; | ||
33 | mode_t mode; | 27 | mode_t mode; |
34 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 28 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
35 | struct lock_class_key *key; | 29 | struct lock_class_key *key; |
@@ -136,8 +130,8 @@ int __must_check sysfs_create_file(struct kobject *kobj, | |||
136 | const struct attribute *attr); | 130 | const struct attribute *attr); |
137 | int __must_check sysfs_create_files(struct kobject *kobj, | 131 | int __must_check sysfs_create_files(struct kobject *kobj, |
138 | const struct attribute **attr); | 132 | const struct attribute **attr); |
139 | int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, | 133 | int __must_check sysfs_chmod_file(struct kobject *kobj, |
140 | mode_t mode); | 134 | const struct attribute *attr, mode_t mode); |
141 | void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); | 135 | void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); |
142 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); | 136 | void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); |
143 | 137 | ||
@@ -225,7 +219,7 @@ static inline int sysfs_create_files(struct kobject *kobj, | |||
225 | } | 219 | } |
226 | 220 | ||
227 | static inline int sysfs_chmod_file(struct kobject *kobj, | 221 | static inline int sysfs_chmod_file(struct kobject *kobj, |
228 | struct attribute *attr, mode_t mode) | 222 | const struct attribute *attr, mode_t mode) |
229 | { | 223 | { |
230 | return 0; | 224 | return 0; |
231 | } | 225 | } |