projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90638f9
)
zorro: Make sysfs config attribute read-only
author
Geert Uytterhoeven
<
[email protected]
>
Wed, 22 Aug 2007 21:01:34 +0000
(14:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 23 Aug 2007 02:52:45 +0000
(19:52 -0700)
zorro: Make the sysfs `config' attribute read-only, as you cannot write to it
(there's no .write function neither).
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/zorro/zorro-sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/zorro/zorro-sysfs.c
b/drivers/zorro/zorro-sysfs.c
index 9130f1c12c265887d02633ef932fe31fadc5526f..808b4f8675c5609ccd195deb755c40233ddf3059 100644
(file)
--- a/
drivers/zorro/zorro-sysfs.c
+++ b/
drivers/zorro/zorro-sysfs.c
@@
-78,7
+78,7
@@
static ssize_t zorro_read_config(struct kobject *kobj,
static struct bin_attribute zorro_config_attr = {
.attr = {
.name = "config",
- .mode = S_IRUGO
| S_IWUSR
,
+ .mode = S_IRUGO,
},
.size = sizeof(struct ConfigDev),
.read = zorro_read_config,