block: make kobj_type structures constant
[linux-2.6-block.git] / block / elevator.c
index adee58e48e2dd8b6b88c952411240d67eaf4548f..24909069f872889506ce2b77313c5f8fd46b1c66 100644 (file)
@@ -126,7 +126,7 @@ static struct elevator_type *elevator_find_get(struct request_queue *q,
        return e;
 }
 
-static struct kobj_type elv_ktype;
+static const struct kobj_type elv_ktype;
 
 struct elevator_queue *elevator_alloc(struct request_queue *q,
                                  struct elevator_type *e)
@@ -455,7 +455,7 @@ static const struct sysfs_ops elv_sysfs_ops = {
        .store  = elv_attr_store,
 };
 
-static struct kobj_type elv_ktype = {
+static const struct kobj_type elv_ktype = {
        .sysfs_ops      = &elv_sysfs_ops,
        .release        = elevator_release,
 };