[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <29ab51dc0810261932n7580e87aua85103f8b1dcc5a5@mail.gmail.com>
Date: Mon, 27 Oct 2008 11:32:27 +0900
From: "Nobuhiro Iwamatsu" <iwamatsu@...auri.org>
To: linux-kernel@...r.kernel.org
Cc: "Al Viro" <viro@...iv.linux.org.uk>,
Linux-sh <linux-sh@...r.kernel.org>
Subject: [PATCH] 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 <iwamatsunigauri.org>
---
drivers/cdrom/gdrom.c | 5 +++--
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)
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists