projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
driver-core: constify data for class_find_device()
[deliverable/linux.git]
/
drivers
/
base
/
core.c
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index a235085e343c47ca2b643f876c31ab70032359b5..56536f4b0f6b9bfd6c3aa4aa603e43e75112de87 100644
(file)
--- a/
drivers/base/core.c
+++ b/
drivers/base/core.c
@@
-1617,9
+1617,9
@@
struct device *device_create(struct class *class, struct device *parent,
}
EXPORT_SYMBOL_GPL(device_create);
}
EXPORT_SYMBOL_GPL(device_create);
-static int __match_devt(struct device *dev, void *data)
+static int __match_devt(struct device *dev,
const
void *data)
{
{
- dev_t *devt = data;
+
const
dev_t *devt = data;
return dev->devt == *devt;
}
return dev->devt == *devt;
}
@@
-1685,8
+1685,6
@@
EXPORT_SYMBOL_GPL(device_destroy);
*/
int device_rename(struct device *dev, const char *new_name)
{
*/
int device_rename(struct device *dev, const char *new_name)
{
- char *old_class_name = NULL;
- char *new_class_name = NULL;
char *old_device_name = NULL;
int error;
char *old_device_name = NULL;
int error;
@@
-1717,8
+1715,6
@@
int device_rename(struct device *dev, const char *new_name)
out:
put_device(dev);
out:
put_device(dev);
- kfree(new_class_name);
- kfree(old_class_name);
kfree(old_device_name);
return error;
kfree(old_device_name);
return error;
This page took
0.024507 seconds
and
5
git commands to generate.