summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index a925f773145f..f13b7eb0238b 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -457,7 +457,7 @@ int device_add_disk(struct device *parent, struct gendisk *disk,
if (ret < 0)
return ret;
disk->major = BLOCK_EXT_MAJOR;
- disk->first_minor = MINOR(ret);
+ disk->first_minor = ret;
disk->flags |= GENHD_FL_EXT_DEVT;
}