aboutsummaryrefslogtreecommitdiffstats
path: root/block/elevator.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/elevator.c')
-rw-r--r--block/elevator.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/block/elevator.c b/block/elevator.c
index 0d2db536c6a7..db3d0d8296a0 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -699,11 +699,12 @@ int elv_register_queue(struct request_queue *q)
699 699
700 error = kobject_add(&e->kobj); 700 error = kobject_add(&e->kobj);
701 if (!error) { 701 if (!error) {
702 struct attribute **attr = e->elevator_type->elevator_attrs; 702 struct elv_fs_entry *attr = e->elevator_type->elevator_attrs;
703 if (attr) { 703 if (attr) {
704 while (*attr) { 704 while (attr->attr.name) {
705 if (sysfs_create_file(&e->kobj,*attr++)) 705 if (sysfs_create_file(&e->kobj, &attr->attr))
706 break; 706 break;
707 attr++;
707 } 708 }
708 } 709 }
709 kobject_uevent(&e->kobj, KOBJ_ADD); 710 kobject_uevent(&e->kobj, KOBJ_ADD);