Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 545727f3 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Paul Mundt
Browse files

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: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent e00afb64
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)