diff options
Diffstat (limited to 'block/early-lookup.c')
-rw-r--r-- | block/early-lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/early-lookup.c b/block/early-lookup.c index 3effbd0d35..3fb57f7d2b 100644 --- a/block/early-lookup.c +++ b/block/early-lookup.c @@ -78,7 +78,7 @@ static int __init devt_from_partuuid(const char *uuid_str, dev_t *devt) * to the partition number found by UUID. */ *devt = part_devt(dev_to_disk(dev), - dev_to_bdev(dev)->bd_partno + offset); + bdev_partno(dev_to_bdev(dev)) + offset); } else { *devt = dev->devt; } |