Commit b3ee8708 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Get rid of blkvsc_check_events()

We don't support removable media in Hyper-V block driver.
Get rid of blkvsc_check_events() as it is efectively "dead code".
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 273083be
...@@ -244,14 +244,6 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req, ...@@ -244,14 +244,6 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req,
} }
static unsigned int blkvsc_check_events(struct gendisk *gd,
unsigned int clearing)
{
DPRINT_DBG(BLKVSC_DRV, "- enter\n");
return DISK_EVENT_MEDIA_CHANGE;
}
static int blkvsc_open(struct block_device *bdev, fmode_t mode) static int blkvsc_open(struct block_device *bdev, fmode_t mode)
{ {
struct block_device_context *blkdev = bdev->bd_disk->private_data; struct block_device_context *blkdev = bdev->bd_disk->private_data;
...@@ -389,7 +381,6 @@ static const struct block_device_operations block_ops = { ...@@ -389,7 +381,6 @@ static const struct block_device_operations block_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = blkvsc_open, .open = blkvsc_open,
.release = blkvsc_release, .release = blkvsc_release,
.check_events = blkvsc_check_events,
.revalidate_disk = blkvsc_revalidate_disk, .revalidate_disk = blkvsc_revalidate_disk,
.getgeo = blkvsc_getgeo, .getgeo = blkvsc_getgeo,
.ioctl = blkvsc_ioctl, .ioctl = blkvsc_ioctl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment