From: Michael Ellerman Date: Wed, 24 Nov 2010 22:44:07 +0000 (+1100) Subject: driver core: Document that device_rename() is only for networking X-Git-Tag: v2.6.38-rc1~422^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=c6c0ac664c86ff6408fadbed4913938c8a732e26;hp=e030d58e8860f1c87b17631dbdd70747cbe1fb5b 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 Signed-off-by: Greg Kroah-Hartman --- 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); * exclusion between two different calls of device_rename * on the same device to ensure that new_name is valid and * won't conflict with other devices. + * + * "Never use this function, bad things will happen" - gregkh */ int device_rename(struct device *dev, const char *new_name) {