Skip to content
Commit a839c5af authored by Mark Fasheh's avatar Mark Fasheh
Browse files

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: default avatarMark Fasheh <mfasheh@suse.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5cc3bf27
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