diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ez.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/block/ez.c b/drivers/block/ez.c index 82270915d..6c2960a5a 100644 --- a/drivers/block/ez.c +++ b/drivers/block/ez.c @@ -176,7 +176,7 @@ static int ez_open(struct inode *inode, struct file *file); static void do_ez_request(void); static int ez_ioctl(struct inode *inode,struct file *file, unsigned int cmd, unsigned long arg); -static void ez_release (struct inode *inode, struct file *file); +static int ez_release (struct inode *inode, struct file *file); static int ez_revalidate(kdev_t dev); static int ez_check_media(kdev_t dev); static void ez_get_capacity( void ); @@ -387,7 +387,7 @@ static int ez_ioctl(struct inode *inode,struct file *file, } } -static void ez_release (struct inode *inode, struct file *file) +static int ez_release (struct inode *inode, struct file *file) { kdev_t devp; @@ -400,6 +400,7 @@ static void ez_release (struct inode *inode, struct file *file) if (!ez_access) ez_doorlock(IDE_DOORUNLOCK); MOD_DEC_USE_COUNT; } + return 0; } static int ez_check_media( kdev_t dev) |