]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/sysfs/file.c
Merge branch 'davinci-next' of git://gitorious.org/linux-davinci/linux-davinci into...
[mv-sheeva.git] / fs / sysfs / file.c
index da3fefe91a8f855f59e62c84f0ef70a2a9bd0524..1ad8c93c1b8552d2cea0e461a2287c692f376cc9 100644 (file)
 
 #include "sysfs.h"
 
-/* used in crash dumps to help with debugging */
-static char last_sysfs_file[PATH_MAX];
-void sysfs_printk_last_file(void)
-{
-       printk(KERN_EMERG "last sysfs file: %s\n", last_sysfs_file);
-}
-
 /*
  * There's one sysfs_buffer for each open file and one
  * sysfs_open_dirent for each sysfs_dirent with one or more open
@@ -337,11 +330,6 @@ static int sysfs_open_file(struct inode *inode, struct file *file)
        struct sysfs_buffer *buffer;
        const struct sysfs_ops *ops;
        int error = -EACCES;
-       char *p;
-
-       p = d_path(&file->f_path, last_sysfs_file, sizeof(last_sysfs_file));
-       if (!IS_ERR(p))
-               memmove(last_sysfs_file, p, strlen(p) + 1);
 
        /* need attr_sd for attr and ops, its parent for kobj */
        if (!sysfs_get_active(attr_sd))