aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-gd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-gd.c')
-rw-r--r--drivers/ide/ide-gd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide-gd.c b/drivers/ide/ide-gd.c
index 70ea8763567d..de86631e767d 100644
--- a/drivers/ide/ide-gd.c
+++ b/drivers/ide/ide-gd.c
@@ -250,7 +250,7 @@ static int ide_gd_unlocked_open(struct block_device *bdev, fmode_t mode)
250} 250}
251 251
252 252
253static int ide_gd_release(struct gendisk *disk, fmode_t mode) 253static void ide_gd_release(struct gendisk *disk, fmode_t mode)
254{ 254{
255 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj); 255 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj);
256 ide_drive_t *drive = idkp->drive; 256 ide_drive_t *drive = idkp->drive;
@@ -270,8 +270,6 @@ static int ide_gd_release(struct gendisk *disk, fmode_t mode)
270 270
271 ide_disk_put(idkp); 271 ide_disk_put(idkp);
272 mutex_unlock(&ide_gd_mutex); 272 mutex_unlock(&ide_gd_mutex);
273
274 return 0;
275} 273}
276 274
277static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo) 275static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo)