git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmc: atmel-mci: Add support for SDIO interrupts
[safe/jmp/linux-2.6]
/
kernel
/
params.c
diff --git
a/kernel/params.c
b/kernel/params.c
index
2278ce2
..
0b30ecd
100644
(file)
--- a/
kernel/params.c
+++ b/
kernel/params.c
@@
-24,7
+24,6
@@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>
-#include <linux/string.h>
#if 0
#define DEBUGP printk
#if 0
#define DEBUGP printk
@@
-517,6
+516,7
@@
static __modinit int add_sysfs_param(struct module_kobject *mk,
new->grp.attrs = attrs;
/* Tack new one on the end. */
new->grp.attrs = attrs;
/* Tack new one on the end. */
+ sysfs_attr_init(&new->attrs[num].mattr.attr);
new->attrs[num].param = kp;
new->attrs[num].mattr.show = param_attr_show;
new->attrs[num].mattr.store = param_attr_store;
new->attrs[num].param = kp;
new->attrs[num].mattr.show = param_attr_show;
new->attrs[num].mattr.store = param_attr_store;
@@
-723,7
+723,7
@@
static ssize_t module_attr_store(struct kobject *kobj,
return ret;
}
return ret;
}
-static struct sysfs_ops module_sysfs_ops = {
+static
const
struct sysfs_ops module_sysfs_ops = {
.show = module_attr_show,
.store = module_attr_store,
};
.show = module_attr_show,
.store = module_attr_store,
};
@@
-737,7
+737,7
@@
static int uevent_filter(struct kset *kset, struct kobject *kobj)
return 0;
}
return 0;
}
-static struct kset_uevent_ops module_uevent_ops = {
+static
const
struct kset_uevent_ops module_uevent_ops = {
.filter = uevent_filter,
};
.filter = uevent_filter,
};