diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2010-11-24 17:44:07 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-29 16:47:05 -0500 |
commit | c6c0ac664c86ff6408fadbed4913938c8a732e26 (patch) | |
tree | b48f5fef6e5b2e7543e4e7116d42a950353e8199 /drivers/base/core.c | |
parent | e030d58e8860f1c87b17631dbdd70747cbe1fb5b (diff) |
driver core: Document that device_rename() is only for networking
Document that device_rename() is not to be used by anything
other than the network core.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 46ff6c251932..610d967632cd 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -1513,6 +1513,8 @@ EXPORT_SYMBOL_GPL(device_destroy); | |||
1513 | * exclusion between two different calls of device_rename | 1513 | * exclusion between two different calls of device_rename |
1514 | * on the same device to ensure that new_name is valid and | 1514 | * on the same device to ensure that new_name is valid and |
1515 | * won't conflict with other devices. | 1515 | * won't conflict with other devices. |
1516 | * | ||
1517 | * "Never use this function, bad things will happen" - gregkh | ||
1516 | */ | 1518 | */ |
1517 | int device_rename(struct device *dev, const char *new_name) | 1519 | int device_rename(struct device *dev, const char *new_name) |
1518 | { | 1520 | { |