patch-2.4.0-test2 linux/drivers/sbus/char/uctrl.c
Next file: linux/drivers/sbus/char/vfc_dev.c
Previous file: linux/drivers/sbus/char/sunmouse.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Mon Jun 19 17:59:41 2000
- Orig file:
v2.4.0-test1/linux/drivers/sbus/char/uctrl.c
- Orig date:
Thu Feb 10 17:11:12 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/sbus/char/uctrl.c linux/drivers/sbus/char/uctrl.c
@@ -1,4 +1,4 @@
-/* $Id: uctrl.c,v 1.7 2000/02/09 22:33:28 davem Exp $
+/* $Id: uctrl.c,v 1.8 2000/06/19 06:24:47 davem Exp $
* uctrl.c: TS102 Microcontroller interface on Tadpole Sparcbook 3
*
* Copyright 1999 Derrick J Brashear (shadow@dementia.org)
@@ -218,19 +218,11 @@
static int
uctrl_open(struct inode *inode, struct file *file)
{
- MOD_INC_USE_COUNT;
uctrl_get_event_status();
uctrl_get_external_status();
return 0;
}
-static int
-uctrl_release(struct inode *inode, struct file *file)
-{
- MOD_DEC_USE_COUNT;
- return 0;
-}
-
void uctrl_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
struct uctrl_driver *driver = (struct uctrl_driver *)dev_id;
@@ -238,10 +230,10 @@
}
static struct file_operations uctrl_fops = {
+ owner: THIS_MODULE,
llseek: uctrl_llseek,
ioctl: uctrl_ioctl,
open: uctrl_open,
- release: uctrl_release,
};
static struct miscdevice uctrl_dev = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)