Skip to content

Commit

Permalink
paride/pcd: use bdev_check_media_change
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Sep 10, 2020
1 parent 77f93bf commit 1570d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/paride/pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1570d14

Please sign in to comment.