lkml.org 
[lkml]   [2011]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/16] umem: Drop dummy ->media_changed()
    Date
    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>
    ---
    drivers/block/umem.c | 10 ----------
    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,
    --
    1.7.1


    \
     
     \ /
      Last update: 2011-03-09 10:17    [W:0.020 / U:119.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site