patch-2.4.0-test2 linux/drivers/char/sx.c
Next file: linux/drivers/char/tpqic02.c
Previous file: linux/drivers/char/stradis.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Tue Jun 20 07:37:58 2000
- Orig file:
v2.4.0-test1/linux/drivers/char/sx.c
- Orig date:
Mon Jun 19 16:31:59 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/sx.c linux/drivers/char/sx.c
@@ -304,8 +304,6 @@
static int sx_init_portstructs (int nboards, int nports);
static int sx_fw_ioctl (struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);
-static int sx_fw_open(struct inode *inode, struct file *filp);
-static INT sx_fw_release(struct inode *inode, struct file *filp);
static int sx_init_drivers(void);
@@ -419,9 +417,8 @@
*/
static struct file_operations sx_fw_fops = {
+ owner: THIS_MODULE,
ioctl: sx_fw_ioctl,
- open: sx_fw_open,
- release: sx_fw_release,
};
struct miscdevice sx_fw_device = {
@@ -1417,25 +1414,6 @@
* Here are the routines that actually *
* interface with the rest of the system *
* ********************************************************************** */
-
-
-static int sx_fw_open(struct inode *inode, struct file *filp)
-{
- func_enter ();
- MOD_INC_USE_COUNT;
- func_exit ();
- return 0;
-}
-
-
-static INT sx_fw_release(struct inode *inode, struct file *filp)
-{
- func_enter ();
- MOD_DEC_USE_COUNT;
- func_exit ();
- return NO_ERROR;
-}
-
static int sx_open (struct tty_struct * tty, struct file * filp)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)