diff options
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 1 insertions, 1 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) { |