android_kernel_xiaomi_sm8350/drivers/base
Stephen Hemminger 0599ad53fe sysfs: remove error messages for -EEXIST case
It is possible that the entry in sysfs already exists, one case of this is
when a network device is renamed to bonding_masters. Anyway, in this case
the proper error path is for device_rename to return an error code, not to
generate bogus backtrace and errors.

Also, to avoid possible races, the create link should be done before the
remove link. This makes a device rename atomic operation like other renames.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-14 22:34:16 -07:00
..
power
attribute_container.c
base.h driver core: remove no longer used "struct class_device" 2008-04-30 16:52:49 -07:00
bus.c
class.c Driver core: struct class remove children list 2008-05-14 10:37:58 -07:00
core.c sysfs: remove error messages for -EEXIST case 2008-05-14 22:34:16 -07:00
cpu.c cpu: change cpu_sys_devices from array to per_cpu variable 2008-05-01 08:04:02 -07:00
dd.c
devres.c
dma-mapping.c
driver.c driver core: warn about duplicate driver names on the same bus 2008-04-30 16:52:47 -07:00
firmware_class.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c memory: Introduce exports for memory notifiers 2008-05-13 01:31:38 -04:00
module.c
node.c
platform.c
sys.c Fix bogus warning in sysdev_driver_register() 2008-05-06 13:22:42 -07:00
topology.c
transport_class.c