diff options
author | Jan Kara <jack@suse.cz> | 2018-02-26 15:01:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-26 19:48:42 +0300 |
commit | 3079c22ea815775837a4f389ce2f7e1e7b202e09 (patch) | |
tree | 2210be59a22f091fcc79062255e64aa419c2d70c /drivers/block/floppy.c | |
parent | d52987b524ccd2e2165ddad9bcc087a6c3f5332c (diff) | |
download | linux-3079c22ea815775837a4f389ce2f7e1e7b202e09.tar.xz |
genhd: Rename get_disk() to get_disk_and_module()
Rename get_disk() to get_disk_and_module() to make sure what the
function does. It's not a great name but at least it is now clear that
put_disk() is not it's counterpart.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index eae484acfbbc..8ec7235fc93b 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -4505,7 +4505,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data) if (((*part >> 2) & 0x1f) >= ARRAY_SIZE(floppy_type)) return NULL; *part = 0; - return get_disk(disks[drive]); + return get_disk_and_module(disks[drive]); } static int __init do_floppy_init(void) |