diff options
author | Christoph Hellwig <hch@lst.de> | 2020-04-25 09:57:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-04 10:13:42 -0600 |
commit | a711d91cd97e6c9a554ccd1652527a7f36661857 (patch) | |
tree | f2cde770a237e0bc8415b86a709cfa070a0d7a21 /drivers/block/paride | |
parent | 21f3cfeab304fc07b90d93d98d4d2f62110fe6b2 (diff) |
block: add a cdrom_device_info pointer to struct gendisk
Add a pointer to the CDROM information structure to struct gendisk.
This will allow various removable media file systems to call directly
into the CDROM layer instead of abusing ioctls with kernel pointers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
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 cda5cf917e9a..5124eca90e83 100644 --- a/drivers/block/paride/pcd.c +++ b/drivers/block/paride/pcd.c @@ -1032,7 +1032,7 @@ static int __init pcd_init(void) for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { if (cd->present) { - register_cdrom(&cd->info); + register_cdrom(cd->disk, &cd->info); cd->disk->private_data = cd; add_disk(cd->disk); } |