aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/paride/pd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/paride/pd.c')
-rw-r--r--drivers/block/paride/pd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c
index 831e3ac156e6..19ad8f0c83ef 100644
--- a/drivers/block/paride/pd.c
+++ b/drivers/block/paride/pd.c
@@ -783,7 +783,7 @@ static int pd_ioctl(struct block_device *bdev, fmode_t mode,
783 } 783 }
784} 784}
785 785
786static int pd_release(struct gendisk *p, fmode_t mode) 786static void pd_release(struct gendisk *p, fmode_t mode)
787{ 787{
788 struct pd_unit *disk = p->private_data; 788 struct pd_unit *disk = p->private_data;
789 789
@@ -791,8 +791,6 @@ static int pd_release(struct gendisk *p, fmode_t mode)
791 if (!--disk->access && disk->removable) 791 if (!--disk->access && disk->removable)
792 pd_special_command(disk, pd_door_unlock); 792 pd_special_command(disk, pd_door_unlock);
793 mutex_unlock(&pd_mutex); 793 mutex_unlock(&pd_mutex);
794
795 return 0;
796} 794}
797 795
798static unsigned int pd_check_events(struct gendisk *p, unsigned int clearing) 796static unsigned int pd_check_events(struct gendisk *p, unsigned int clearing)