patch-2.4.0-test2 linux/drivers/char/ds1620.c
Next file: linux/drivers/char/dsp56k.c
Previous file: linux/drivers/char/drm/proc.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Jun 20 07:32:13 2000
- Orig file:
v2.4.0-test1/linux/drivers/char/ds1620.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/ds1620.c linux/drivers/char/ds1620.c
@@ -311,22 +311,6 @@
return 0;
}
-static int
-ds1620_open(struct inode *inode, struct file *file)
-{
- MOD_INC_USE_COUNT;
-
- return 0;
-}
-
-static int
-ds1620_release(struct inode *inode, struct file *file)
-{
- MOD_DEC_USE_COUNT;
-
- return 0;
-}
-
#ifdef THERM_USE_PROC
static int
proc_therm_ds1620_read(char *buf, char **start, off_t offset,
@@ -352,10 +336,9 @@
#endif
static struct file_operations ds1620_fops = {
+ owner: THIS_MODULE,
read: ds1620_read,
ioctl: ds1620_ioctl,
- open: ds1620_open,
- release: ds1620_release,
};
static struct miscdevice ds1620_miscdev = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)