]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Allow removal of symlinks in the sysfs root
authorMark Fasheh <mfasheh@suse.com>
Tue, 29 Jan 2008 22:35:18 +0000 (14:35 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:10 +0000 (08:56 -0700)
commit0f0a43c4f49980641f9af18ea815557fa28a8eb5
tree58fda1dc26c12edc365e7cd2fe12f8dfc7554dd2
parent729fd4dc52ffa091aa3caa7f8d8253f773d87d24
sysfs: Allow removal of symlinks in the sysfs root

Allow callers of sysfs_remove_link() to pass a NULL kobj, in which case
sysfs_root will be used as the parent directory. This allows us to tear down
top level symlinks created via sysfs_create_link(), which already has
similar handling of a NULL parent object.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/symlink.c