]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs, kernfs: remove sysfs_add_one()
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:25 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 01:48:14 +0000 (17:48 -0800)
commit80b4c4653330956dd053d7984f200bbd2087fb32
tree8c11e1e9b99eec3c527e63f0ef1ca6af1858dab2
parentd2e448b553326230b4d7df7ab81fd36e44ceb065
sysfs, kernfs: remove sysfs_add_one()

sysfs_add_one() is a wrapper around __sysfs_add_one() which prints out
duplicate name warning if __sysfs_add_one() fails with -EEXIST.  The
previous kernfs conversions moved all dup warnings to sysfs interface
functions and sysfs_add_one() doesn't have any user left.

Remove sysfs_add_one() and update __sysfs_add_one() to take its name.

This patch doesn't make any functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h