aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 2f2873b9a041..a02df22f37c3 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -543,9 +543,9 @@ EXPORT_SYMBOL(bd_release);
543static struct kobject *bdev_get_kobj(struct block_device *bdev) 543static struct kobject *bdev_get_kobj(struct block_device *bdev)
544{ 544{
545 if (bdev->bd_contains != bdev) 545 if (bdev->bd_contains != bdev)
546 return kobject_get(&bdev->bd_part->dev.kobj); 546 return kobject_get(&part_to_dev(bdev->bd_part)->kobj);
547 else 547 else
548 return kobject_get(&bdev->bd_disk->dev.kobj); 548 return kobject_get(&disk_to_dev(bdev->bd_disk)->kobj);
549} 549}
550 550
551static struct kobject *bdev_get_holder(struct block_device *bdev) 551static struct kobject *bdev_get_holder(struct block_device *bdev)