X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fbase%2Fcore.c;h=8c2cc2648f5a5c0ec330df4991f75b6be07131ae;hb=0df6cbb7d8a0a8fea69138e9e463671a8ad99f16;hp=9649d1c422a4bd1abbc71ef7849d7b02193fc52a;hpb=286661b3777897220ecfcd774bccc68a34667f39;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/base/core.c b/drivers/base/core.c index 9649d1c..8c2cc26 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1327,6 +1327,11 @@ EXPORT_SYMBOL_GPL(device_destroy); * device_rename - renames a device * @dev: the pointer to the struct device to be renamed * @new_name: the new name of the device + * + * It is the responsibility of the caller to provide mutual + * 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. */ int device_rename(struct device *dev, char *new_name) {