diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 4 |
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); | |||
543 | static struct kobject *bdev_get_kobj(struct block_device *bdev) | 543 | static 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 | ||
551 | static struct kobject *bdev_get_holder(struct block_device *bdev) | 551 | static struct kobject *bdev_get_holder(struct block_device *bdev) |