diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-06-13 09:53:48 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-06-13 09:53:48 +1000 |
commit | 2370f92a31cebbc8f5a72af7219aa8fb3d64180e (patch) | |
tree | ccb03b1a68f906af6977c17cdc94e3f71f746bf3 /drivers | |
parent | 65bcd52ec3d46f498dfd2d09d6fbc9b7c625028e (diff) | |
parent | 21765aa091fba23ff2c7e0577493a46fcf9b5f97 (diff) |
Merge branch 'quilt/driver-core.current'
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index ee0a51a3a41d..817c6d26c7d5 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1260,6 +1260,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) { |