]> Git Repo - linux.git/commitdiff
gdrom: Fix compile error
authorNobuhiro Iwamatsu <[email protected]>
Mon, 27 Oct 2008 02:32:27 +0000 (11:32 +0900)
committerPaul Mundt <[email protected]>
Tue, 28 Oct 2008 08:46:02 +0000 (17:46 +0900)
Return value and argument of block_device_operations.release of gdrom
was changed.
This patch fix this problem.

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Acked-by: Al Viro <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
drivers/cdrom/gdrom.c

index 9aaa86b232b190a1622c2ddf8ffcfc32be011cad..2eecb779437b8057cdef2c59d37bbae71930b9c1 100644 (file)
@@ -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)
This page took 0.047352 seconds and 4 git commands to generate.