diff options
Diffstat (limited to 'drivers/s390/block/dasd_genhd.c')
-rw-r--r-- | drivers/s390/block/dasd_genhd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c index a601c9a33541..fce2835e7d19 100644 --- a/drivers/s390/block/dasd_genhd.c +++ b/drivers/s390/block/dasd_genhd.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * gendisk related functions for the dasd driver. | 10 | * gendisk related functions for the dasd driver. |
11 | * | 11 | * |
12 | * $Revision: 1.51 $ | ||
13 | */ | 12 | */ |
14 | 13 | ||
15 | #include <linux/config.h> | 14 | #include <linux/config.h> |
@@ -101,8 +100,6 @@ dasd_scan_partitions(struct dasd_device * device) | |||
101 | { | 100 | { |
102 | struct block_device *bdev; | 101 | struct block_device *bdev; |
103 | 102 | ||
104 | /* Make the disk known. */ | ||
105 | set_capacity(device->gdp, device->blocks << device->s2b_shift); | ||
106 | bdev = bdget_disk(device->gdp, 0); | 103 | bdev = bdget_disk(device->gdp, 0); |
107 | if (!bdev || blkdev_get(bdev, FMODE_READ, 1) < 0) | 104 | if (!bdev || blkdev_get(bdev, FMODE_READ, 1) < 0) |
108 | return -ENODEV; | 105 | return -ENODEV; |