Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117529
b: refs/heads/master
c: 8389feb
h: refs/heads/master
i:
  117527: e5d094c
v: v3
  • Loading branch information
Al Viro committed Oct 21, 2008
1 parent 6e31a01 commit b7e3c89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab746cb9386313201f2e0060e85a30781047dee1
refs/heads/master: 8389feb4a8b9c29836c320e51677bd4650713fa8
19 changes: 9 additions & 10 deletions trunk/drivers/cdrom/gdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,34 +490,33 @@ 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)
{
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)
Expand Down

0 comments on commit b7e3c89

Please sign in to comment.