summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/cm206.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
commit6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch)
tree0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/cdrom/cm206.c
parentecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff)
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown.
Diffstat (limited to 'drivers/cdrom/cm206.c')
-rw-r--r--drivers/cdrom/cm206.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/cdrom/cm206.c b/drivers/cdrom/cm206.c
index 45af24484..9e8889ac6 100644
--- a/drivers/cdrom/cm206.c
+++ b/drivers/cdrom/cm206.c
@@ -736,13 +736,14 @@ void get_disc_status(void)
static int cm206_open(struct cdrom_device_info * cdi, int purpose)
{
+ MOD_INC_USE_COUNT;
if (!cd->openfiles) { /* reset only first time */
cd->background=0;
reset_cm260();
cd->adapter_last = -1; /* invalidate adapter memory */
cd->sector_last = -1;
}
- ++cd->openfiles; MOD_INC_USE_COUNT;
+ ++cd->openfiles;
stats(open);
return 0;
}
@@ -757,7 +758,8 @@ static void cm206_release(struct cdrom_device_info * cdi)
cd->sector_last = -1; /* Make our internal buffer invalid */
FIRST_TRACK = 0; /* No valid disc status */
}
- --cd->openfiles; MOD_DEC_USE_COUNT;
+ --cd->openfiles;
+ MOD_DEC_USE_COUNT;
}
/* Empty buffer empties $sectors$ sectors of the adapter card buffer,
@@ -1258,6 +1260,7 @@ static struct cdrom_device_info cm206_info = {
&cm206_dops, /* device operations */
NULL, /* link */
NULL, /* handle (not used by cm206) */
+ 0, /* devfs handle */
0, /* dev */
0, /* mask */
2, /* maximum speed */