Commit 30a0e2c9 authored by Patrick Mochel's avatar Patrick Mochel

driverfs: Remove references to struct driver_file_entry::dentry, as we don't use it

for anything useful anymore.
parent 3442d2c4
...@@ -656,7 +656,6 @@ driverfs_create_file(struct driver_file_entry * entry, ...@@ -656,7 +656,6 @@ driverfs_create_file(struct driver_file_entry * entry,
/* Still good? Ok, then fill in the blanks: */ /* Still good? Ok, then fill in the blanks: */
if (!error) { if (!error) {
dentry->d_inode->u.generic_ip = (void *)entry; dentry->d_inode->u.generic_ip = (void *)entry;
entry->dentry = dentry;
entry->parent = parent; entry->parent = parent;
} }
} else } else
...@@ -701,7 +700,6 @@ int driverfs_create_symlink(struct driver_dir_entry * parent, ...@@ -701,7 +700,6 @@ int driverfs_create_symlink(struct driver_dir_entry * parent,
error = driverfs_symlink(parent->dentry->d_inode,dentry,target); error = driverfs_symlink(parent->dentry->d_inode,dentry,target);
if (!error) { if (!error) {
dentry->d_inode->u.generic_ip = (void *)entry; dentry->d_inode->u.generic_ip = (void *)entry;
entry->dentry = dentry;
entry->parent = parent; entry->parent = parent;
} }
} else } else
......
...@@ -38,7 +38,6 @@ struct driver_file_entry { ...@@ -38,7 +38,6 @@ struct driver_file_entry {
struct driver_dir_entry * parent; struct driver_dir_entry * parent;
char * name; char * name;
mode_t mode; mode_t mode;
struct dentry * dentry;
ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off); ssize_t (*show)(struct device * dev, char * buf, size_t count, loff_t off);
ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off); ssize_t (*store)(struct device * dev, const char * buf, size_t count, loff_t off);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment