Staging: hv: blkvsc: We don't support removable media; get rid of unnecessary state
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:49:44 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:45:51 +0000 (13:45 -0700)
We don't support removable media; get rid of unnecessary state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c

index a44fc768472707365cc3f58b0bb8b006495d3240..3612574ca52087c6a192a5ab061479d7403e08ab 100644 (file)
@@ -926,7 +926,6 @@ static int blkvsc_probe(struct hv_device *dev)
        else
                blkdev->gd->first_minor = 0;
        blkdev->gd->fops = &block_ops;
-       blkdev->gd->events = DISK_EVENT_MEDIA_CHANGE;
        blkdev->gd->private_data = blkdev;
        blkdev->gd->driverfs_dev = &(blkdev->device_ctx->device);
        sprintf(blkdev->gd->disk_name, "hd%c", 'a' + major_info.index);