summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-03 09:23:20 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-03 09:23:20 +0000
commitac5ff8f4a72f7b4e66f73c3c6cb9fe7758cf6f12 (patch)
tree9fc7f8ce32e0d9a4aa055b2a58a05a5d727b333c /drivers/block
parent52662ff3e66770fd7e4fc508c91056d29c08bff0 (diff)
Sync with Linux 2.1.42.
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ez.c5
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)