aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-10-27 11:32:27 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-10-28 17:46:02 +0900
commit545727f32049f6e7269f73a49904e3229192988e (patch)
treefe6c16e5cb5d5e978f504f3f5cedb1240c5faf46 /drivers/cdrom
parente00afb64239dc764193d48a28bbfba6da2b3b5de (diff)
downloadkernel_samsung_aries-545727f32049f6e7269f73a49904e3229192988e.zip
kernel_samsung_aries-545727f32049f6e7269f73a49904e3229192988e.tar.gz
kernel_samsung_aries-545727f32049f6e7269f73a49904e3229192988e.tar.bz2
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: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/cdrom')
-rw-r--r--drivers/cdrom/gdrom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index 9aaa86b..2eecb77 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -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)