summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMiguel Ojeda Sandonis <maxextreme@gmail.com>2006-09-13 15:34:05 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-25 21:08:36 -0700
commitab7d7371acc68fa9130b079a9ba879191202035f (patch)
tree9ebd5fbcdb8f1ddffc022f573acc0690c11a8c83 /drivers/base
parent5cbe5f8a5897470698222ac9924429056e57d84c (diff)
downloadtalos-obmc-linux-ab7d7371acc68fa9130b079a9ba879191202035f.tar.gz
talos-obmc-linux-ab7d7371acc68fa9130b079a9ba879191202035f.zip
Driver core: add const to class_create
Adds const to class_create second parameter, because: struct class { const char * name; /*...*/ } Signed-off-by: Miguel Ojeda Sandonis <maxextreme@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 75057aaab809..e078bc21d52e 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -197,7 +197,7 @@ static int class_device_create_uevent(struct class_device *class_dev,
* Note, the pointer created here is to be destroyed when finished by
* making a call to class_destroy().
*/
-struct class *class_create(struct module *owner, char *name)
+struct class *class_create(struct module *owner, const char *name)
{
struct class *cls;
int retval;
OpenPOWER on IntegriCloud