summaryrefslogtreecommitdiffstats
path: root/fs/devpts/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/devpts/root.c')
-rw-r--r--fs/devpts/root.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/devpts/root.c b/fs/devpts/root.c
index 5af3967e2..ed6258663 100644
--- a/fs/devpts/root.c
+++ b/fs/devpts/root.c
@@ -20,14 +20,13 @@ static int devpts_root_readdir(struct file *,void *,filldir_t);
static struct dentry *devpts_root_lookup(struct inode *,struct dentry *);
static int devpts_revalidate(struct dentry *, int);
-static struct file_operations devpts_root_operations = {
+struct file_operations devpts_root_operations = {
+ read: generic_read_dir,
readdir: devpts_root_readdir,
};
struct inode_operations devpts_root_inode_operations = {
- &devpts_root_operations, /* file operations */
- NULL, /* create */
- devpts_root_lookup, /* lookup */
+ lookup: devpts_root_lookup,
};
static struct dentry_operations devpts_dentry_operations = {