]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/sysfs/dir.c
sysfs: reimplement symlink using sysfs_dirent tree
[linux-2.6-omap-h63xx.git] / fs / sysfs / dir.c
index e9fddcc59447a0690cc0b07323ad0947736f30e6..2a94dc36d166d3b64b049f3e3ba49e7f7571ddf4 100644 (file)
@@ -54,7 +54,7 @@ void release_sysfs_dirent(struct sysfs_dirent * sd)
        parent_sd = sd->s_parent;
 
        if (sd->s_type & SYSFS_KOBJ_LINK)
-               kobject_put(sd->s_elem.symlink.target_kobj);
+               sysfs_put(sd->s_elem.symlink.target_sd);
        if (sd->s_type & SYSFS_COPY_NAME)
                kfree(sd->s_name);
        kfree(sd->s_iattr);