aboutsummaryrefslogtreecommitdiffstats
path: root/fs/partitions
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-06 01:24:43 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:11 -0500
commit4ff6abff832fbc6cb1d769f6106c841bc2b09f63 (patch)
tree8458c8e29f53b67912edbe2424e43f95556832ce /fs/partitions
parent3f9e3ee9dc3605e5c593b5d708494571fb0d3970 (diff)
kobject: get rid of kobject_add_dir
kobject_create_and_add is the same as kobject_add_dir, so drop kobject_add_dir. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/partitions')
-rw-r--r--fs/partitions/check.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 722e12e5acc7..69685bb51c62 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -335,7 +335,7 @@ static inline void partition_sysfs_add_subdir(struct hd_struct *p)
335 struct kobject *k; 335 struct kobject *k;
336 336
337 k = kobject_get(&p->kobj); 337 k = kobject_get(&p->kobj);
338 p->holder_dir = kobject_add_dir(k, "holders"); 338 p->holder_dir = kobject_create_and_add("holders", k);
339 kobject_put(k); 339 kobject_put(k);
340} 340}
341 341
@@ -344,8 +344,8 @@ static inline void disk_sysfs_add_subdirs(struct gendisk *disk)
344 struct kobject *k; 344 struct kobject *k;
345 345
346 k = kobject_get(&disk->kobj); 346 k = kobject_get(&disk->kobj);
347 disk->holder_dir = kobject_add_dir(k, "holders"); 347 disk->holder_dir = kobject_create_and_add("holders", k);
348 disk->slave_dir = kobject_add_dir(k, "slaves"); 348 disk->slave_dir = kobject_create_and_add("slaves", k);
349 kobject_put(k); 349 kobject_put(k);
350} 350}
351 351