diff options
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 8b919940b2ab..3887b2a33ed0 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -4182,7 +4182,7 @@ int blk_register_queue(struct gendisk *disk) | |||
4182 | if (!q || !q->request_fn) | 4182 | if (!q || !q->request_fn) |
4183 | return -ENXIO; | 4183 | return -ENXIO; |
4184 | 4184 | ||
4185 | q->kobj.parent = kobject_get(&disk->kobj); | 4185 | q->kobj.parent = kobject_get(&disk->dev.kobj); |
4186 | 4186 | ||
4187 | ret = kobject_add(&q->kobj); | 4187 | ret = kobject_add(&q->kobj); |
4188 | if (ret < 0) | 4188 | if (ret < 0) |
@@ -4209,6 +4209,6 @@ void blk_unregister_queue(struct gendisk *disk) | |||
4209 | 4209 | ||
4210 | kobject_uevent(&q->kobj, KOBJ_REMOVE); | 4210 | kobject_uevent(&q->kobj, KOBJ_REMOVE); |
4211 | kobject_del(&q->kobj); | 4211 | kobject_del(&q->kobj); |
4212 | kobject_put(&disk->kobj); | 4212 | kobject_put(&disk->dev.kobj); |
4213 | } | 4213 | } |
4214 | } | 4214 | } |