diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-08 17:53:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-10 18:32:31 +0300 |
commit | 1570d14f6713d07716861dea1bb4739df37056d5 (patch) | |
tree | ee70625f6927ff08ed8439d9cd4de311ab84e54e /drivers/block/paride | |
parent | 77f93bfd0cc2e659d7135b4afcd5d0a070515bbf (diff) | |
download | linux-1570d14f6713d07716861dea1bb4739df37056d5.tar.xz |
paride/pcd: use bdev_check_media_change
The pcd driver does not have a ->revalidate_disk method, so it can just
use bdev_check_media_change without any additional changes.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/paride')
-rw-r--r-- | drivers/block/paride/pcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/paride/pcd.c b/drivers/block/paride/pcd.c index 5124eca90e83..70da8b86ce58 100644 --- a/drivers/block/paride/pcd.c +++ b/drivers/block/paride/pcd.c @@ -233,7 +233,7 @@ static int pcd_block_open(struct block_device *bdev, fmode_t mode) struct pcd_unit *cd = bdev->bd_disk->private_data; int ret; - check_disk_change(bdev); + bdev_check_media_change(bdev); mutex_lock(&pcd_mutex); ret = cdrom_open(&cd->info, bdev, mode); |