driver core: Use sysfs_rename_link in device_rename
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 13 Feb 2010 03:22:26 +0000 (19:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:52 +0000 (17:04 -0800)
commit2354dcc7218853a6537ec722be40fde9a11c413b
tree6afea7dfd2026c7e87d1c7665b86d617cdf1cbd6
parent7cb32942d91a501b2df944928ccc9e6590ab237b
driver core: Use sysfs_rename_link in device_rename

Don't open code the renaming of symlinks in sysfs
instead use the new helper function sysfs_rename_link

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c