From: K. Y. Srinivasan Date: Wed, 6 Apr 2011 23:05:01 +0000 (-0700) Subject: Staging: hv: Get rid of blkvsc_check_events() X-Git-Tag: v3.0-rc1~336^2~816 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b3ee87081ccc3a5c4394d97ae1a13944b5072e81;p=karo-tx-linux.git 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: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index c45e475e0389..c0d38a8a0401 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -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) { struct block_device_context *blkdev = bdev->bd_disk->private_data; @@ -389,7 +381,6 @@ static const struct block_device_operations block_ops = { .owner = THIS_MODULE, .open = blkvsc_open, .release = blkvsc_release, - .check_events = blkvsc_check_events, .revalidate_disk = blkvsc_revalidate_disk, .getgeo = blkvsc_getgeo, .ioctl = blkvsc_ioctl,