driver core: Suppress sysfs warnings for device_rename().
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 10 Jun 2008 09:09:08 +0000 (11:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jul 2008 04:55:01 +0000 (21:55 -0700)
commit36ce6dad6e3cb3f050ed41e0beac0070d2062b25
tree91c89c903b06dc8b76e66e7b2341bcd6085e81d0
parent0ad1d6f37cc3bb234c6e7ae30e40d1d40b9aa258
driver core: Suppress sysfs warnings for device_rename().

driver core: Suppress sysfs warnings for device_rename().

Renaming network devices to an already existing name is not
something we want sysfs to print a scary warning for, since the
callers can deal with this correctly. So let's introduce
sysfs_create_link_nowarn() which gets rid of the common warning.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
fs/sysfs/dir.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h
include/linux/sysfs.h