patch-2.4.0-test2 linux/fs/devices.c
Next file: linux/fs/devpts/devpts_i.h
Previous file: linux/fs/devfs/util.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Jun 20 07:52:36 2000
- Orig file:
v2.4.0-test1/linux/fs/devices.c
- Orig date:
Sat Feb 26 22:31:52 2000
diff -u --recursive --new-file v2.4.0-test1/linux/fs/devices.c linux/fs/devices.c
@@ -17,6 +17,7 @@
#include <linux/stat.h>
#include <linux/fcntl.h>
#include <linux/errno.h>
+#include <linux/module.h>
#ifdef CONFIG_KMOD
#include <linux/kmod.h>
@@ -142,8 +143,9 @@
{
int ret = -ENODEV;
- filp->f_op = get_chrfops(MAJOR(inode->i_rdev), MINOR(inode->i_rdev));
- if (filp->f_op != NULL){
+ filp->f_op = fops_get(get_chrfops(MAJOR(inode->i_rdev),
+ MINOR(inode->i_rdev)));
+ if (filp->f_op) {
ret = 0;
if (filp->f_op->open != NULL)
ret = filp->f_op->open(inode,filp);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)