aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/swim3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/swim3.c')
-rw-r--r--drivers/block/swim3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index 758f2ac878cf..20e061c3e023 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -251,7 +251,7 @@ static int fd_eject(struct floppy_state *fs);
251static int floppy_ioctl(struct block_device *bdev, fmode_t mode, 251static int floppy_ioctl(struct block_device *bdev, fmode_t mode,
252 unsigned int cmd, unsigned long param); 252 unsigned int cmd, unsigned long param);
253static int floppy_open(struct block_device *bdev, fmode_t mode); 253static int floppy_open(struct block_device *bdev, fmode_t mode);
254static int floppy_release(struct gendisk *disk, fmode_t mode); 254static void floppy_release(struct gendisk *disk, fmode_t mode);
255static unsigned int floppy_check_events(struct gendisk *disk, 255static unsigned int floppy_check_events(struct gendisk *disk,
256 unsigned int clearing); 256 unsigned int clearing);
257static int floppy_revalidate(struct gendisk *disk); 257static int floppy_revalidate(struct gendisk *disk);
@@ -1017,7 +1017,7 @@ static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode)
1017 return ret; 1017 return ret;
1018} 1018}
1019 1019
1020static int floppy_release(struct gendisk *disk, fmode_t mode) 1020static void floppy_release(struct gendisk *disk, fmode_t mode)
1021{ 1021{
1022 struct floppy_state *fs = disk->private_data; 1022 struct floppy_state *fs = disk->private_data;
1023 struct swim3 __iomem *sw = fs->swim3; 1023 struct swim3 __iomem *sw = fs->swim3;
@@ -1029,7 +1029,6 @@ static int floppy_release(struct gendisk *disk, fmode_t mode)
1029 swim3_select(fs, RELAX); 1029 swim3_select(fs, RELAX);
1030 } 1030 }
1031 mutex_unlock(&swim3_mutex); 1031 mutex_unlock(&swim3_mutex);
1032 return 0;
1033} 1032}
1034 1033
1035static unsigned int floppy_check_events(struct gendisk *disk, 1034static unsigned int floppy_check_events(struct gendisk *disk,