mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Al Viro <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
e00afb6423
commit
545727f320
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue