summaryrefslogtreecommitdiffstats
path: root/drivers/block/umem.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-03-09 19:54:28 +0100
committerTejun Heo <tj@kernel.org>2011-03-09 19:54:28 +0100
commit6fac80e3aa9e5bfc6cadb9ea8d0584c557c4b198 (patch)
tree74fae0d24258c3920c3d77f3a8a9cbaebc67fb53 /drivers/block/umem.c
parentffe80cea354519d846767b8165598c2903706c2a (diff)
downloadop-kernel-dev-6fac80e3aa9e5bfc6cadb9ea8d0584c557c4b198.zip
op-kernel-dev-6fac80e3aa9e5bfc6cadb9ea8d0584c557c4b198.tar.gz
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: Tejun Heo <tj@kernel.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'drivers/block/umem.c')
-rw-r--r--drivers/block/umem.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index 8be5715..9b102ab 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -779,20 +779,10 @@ static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo)
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 = {
.owner = THIS_MODULE,
.getgeo = mm_getgeo,
.revalidate_disk = mm_revalidate,
- .media_changed = mm_check_change,
};
static int __devinit mm_pci_probe(struct pci_dev *dev,
OpenPOWER on IntegriCloud