diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-08-05 15:38:18 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-05 20:53:35 (GMT) |
commit | 6937e8f8c0135f2325194c372ada6dc655499992 (patch) | |
tree | 436ede36f95f1cb40d5b9bd8f6711ca26faf0045 /drivers/base/core.c | |
parent | 6fd69dc578fa0b1bbc3aad70ae3af9a137211707 (diff) | |
download | linux-fsl-qoriq-6937e8f8c0135f2325194c372ada6dc655499992.tar.xz |
driver core: device_rename's new_name can be const
The new_name argument to device_rename() can be
const as kobject_rename's new_name argument is.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
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, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index f8e7272..d1b2c9a 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1599,7 +1599,7 @@ EXPORT_SYMBOL_GPL(device_destroy); * 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) +int device_rename(struct device *dev, const char *new_name) { char *old_class_name = NULL; char *new_class_name = NULL; |