From ac5ff8f4a72f7b4e66f73c3c6cb9fe7758cf6f12 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 3 Jun 1997 09:23:20 +0000 Subject: Sync with Linux 2.1.42. --- drivers/block/ez.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/block') 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) -- cgit v1.2.3