driver core: Document that device_rename() is only for networking
[~shefty/rdma-dev.git] / drivers / base / core.c
index 46ff6c2519324c2c5baeff5b97fc0acf700f8b7c..610d967632cd858b163623e616d44a61fedea13a 100644 (file)
@@ -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)
 {