Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249138
b: refs/heads/master
c: d491982
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 3e6c282 commit f95a7df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c8d0b7decd42e7cb5e5118f8d2f0bf3f39ba52a
refs/heads/master: d49198299928122d98ae7ca35dd824eaf8746ccd
9 changes: 1 addition & 8 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ static int blkvsc_do_operation(struct block_device_context *blkdev,

if (device_type == 0x0)
blkdev->device_type = HARDDISK_TYPE;
else if (device_type == 0x5)
blkdev->device_type = DVD_TYPE;
else
blkdev->device_type = UNKNOWN_DEV_TYPE;

Expand Down Expand Up @@ -1076,12 +1074,7 @@ static int blkvsc_probe(struct device *device)
sprintf(blkdev->gd->disk_name, "hd%c", 'a' + devnum);

blkvsc_do_operation(blkdev, DO_INQUIRY);
if (blkdev->device_type == DVD_TYPE) {
set_disk_ro(blkdev->gd, 1);
blkdev->gd->flags |= GENHD_FL_REMOVABLE;
blkvsc_do_operation(blkdev, DO_CAPACITY);
} else
blkvsc_do_operation(blkdev, DO_CAPACITY);
blkvsc_do_operation(blkdev, DO_CAPACITY);

set_capacity(blkdev->gd, blkdev->capacity * (blkdev->sector_size/512));
blk_queue_logical_block_size(blkdev->gd->queue, blkdev->sector_size);
Expand Down

0 comments on commit f95a7df

Please sign in to comment.