提交 545727f3 编写于 作者: N Nobuhiro Iwamatsu 提交者: Paul Mundt

gdrom: Fix compile error

Return value and argument of block_device_operations.release of gdrom
was changed.
This patch fix this problem.
Signed-off-by: NNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 e00afb64
......@@ -495,9 +495,10 @@ static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode)
return cdrom_open(gd.cd_info, bdev, mode);
}
static int gdrom_bdops_release(struct block_device *bdev, fmode_t mode)
static int gdrom_bdops_release(struct gendisk *disk, fmode_t mode)
{
return cdrom_release(gd.cd_info, mode);
cdrom_release(gd.cd_info, mode);
return 0;
}
static int gdrom_bdops_mediachanged(struct gendisk *disk)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册