aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/elevator.c2
-rw-r--r--block/ll_rw_blk.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/block/elevator.c b/block/elevator.c
index 5445c3c2ee8a..645469a4f49f 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -929,7 +929,7 @@ int elv_register_queue(struct request_queue *q)
929 elevator_t *e = q->elevator; 929 elevator_t *e = q->elevator;
930 int error; 930 int error;
931 931
932 error = kobject_add_ng(&e->kobj, &q->kobj, "%s", "iosched"); 932 error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched");
933 if (!error) { 933 if (!error) {
934 struct elv_fs_entry *attr = e->elevator_type->elevator_attrs; 934 struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
935 if (attr) { 935 if (attr) {
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index 8054b7d8e07c..234dd3de1824 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -4180,8 +4180,8 @@ int blk_register_queue(struct gendisk *disk)
4180 if (!q || !q->request_fn) 4180 if (!q || !q->request_fn)
4181 return -ENXIO; 4181 return -ENXIO;
4182 4182
4183 ret = kobject_add_ng(&q->kobj, kobject_get(&disk->dev.kobj), 4183 ret = kobject_add(&q->kobj, kobject_get(&disk->dev.kobj),
4184 "%s", "queue"); 4184 "%s", "queue");
4185 if (ret < 0) 4185 if (ret < 0)
4186 return ret; 4186 return ret;
4187 4187