summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/gdrom.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-03-02 10:25:18 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:48:19 -0400
commit8389feb4a8b9c29836c320e51677bd4650713fa8 (patch)
tree13e8c10f16a0c393c7a09234a905b1bbc1eeb6f0 /drivers/cdrom/gdrom.c
parentab746cb9386313201f2e0060e85a30781047dee1 (diff)
downloadop-kernel-dev-8389feb4a8b9c29836c320e51677bd4650713fa8.zip
op-kernel-dev-8389feb4a8b9c29836c320e51677bd4650713fa8.tar.gz
[PATCH] switch gdrom
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r--drivers/cdrom/gdrom.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index ab0c637..9aaa86b 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -490,14 +490,14 @@ static struct cdrom_device_ops gdrom_ops = {
.n_minors = 1,
};
-static int gdrom_bdops_open(struct inode *inode, struct file *file)
+static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode)
{
- return cdrom_open(gd.cd_info, inode->i_bdev, file->f_mode);
+ return cdrom_open(gd.cd_info, bdev, mode);
}
-static int gdrom_bdops_release(struct inode *inode, struct file *file)
+static int gdrom_bdops_release(struct block_device *bdev, fmode_t mode)
{
- return cdrom_release(gd.cd_info, file ? file->f_mode : 0);
+ return cdrom_release(gd.cd_info, mode);
}
static int gdrom_bdops_mediachanged(struct gendisk *disk)
@@ -505,19 +505,18 @@ static int gdrom_bdops_mediachanged(struct gendisk *disk)
return cdrom_media_changed(gd.cd_info);
}
-static int gdrom_bdops_ioctl(struct inode *inode, struct file *file,
+static int gdrom_bdops_ioctl(struct block_device *bdev, fmode_t mode,
unsigned cmd, unsigned long arg)
{
- return cdrom_ioctl(gd.cd_info, inode->i_bdev,
- file ? file->f_mode : 0, cmd, arg);
+ return cdrom_ioctl(gd.cd_info, bdev, mode, cmd, arg);
}
static struct block_device_operations gdrom_bdops = {
.owner = THIS_MODULE,
- .__open = gdrom_bdops_open,
- .__release = gdrom_bdops_release,
+ .open = gdrom_bdops_open,
+ .release = gdrom_bdops_release,
.media_changed = gdrom_bdops_mediachanged,
- .__ioctl = gdrom_bdops_ioctl,
+ .locked_ioctl = gdrom_bdops_ioctl,
};
static irqreturn_t gdrom_command_interrupt(int irq, void *dev_id)
OpenPOWER on IntegriCloud