Commit 6fac80e3 authored by Tejun Heo's avatar Tejun Heo

umem: Drop dummy ->media_changed()

umem doesn't implement media changed detection and there's no need to
implement dummy callback anymore.  Remove it.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Kay Sievers <kay.sievers@vrfy.org>
parent ffe80cea
...@@ -779,20 +779,10 @@ static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) ...@@ -779,20 +779,10 @@ static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo)
return 0; return 0;
} }
/*
* Future support for removable devices
*/
static int mm_check_change(struct gendisk *disk)
{
/* struct cardinfo *dev = disk->private_data; */
return 0;
}
static const struct block_device_operations mm_fops = { static const struct block_device_operations mm_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.getgeo = mm_getgeo, .getgeo = mm_getgeo,
.revalidate_disk = mm_revalidate, .revalidate_disk = mm_revalidate,
.media_changed = mm_check_change,
}; };
static int __devinit mm_pci_probe(struct pci_dev *dev, static int __devinit mm_pci_probe(struct pci_dev *dev,
......
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