diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2007-08-22 23:01:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-23 04:52:45 +0200 |
commit | a01086687c5f795a9c2b85d757e3af3cb7bb4f2d (patch) | |
tree | f57a45f25336ad056a053b12237eca8cd8680b83 /drivers/zorro/zorro-sysfs.c | |
parent | m68k: Fix a few hickups in drivers/scsi/Kconfig (diff) | |
download | linux-a01086687c5f795a9c2b85d757e3af3cb7bb4f2d.tar.xz linux-a01086687c5f795a9c2b85d757e3af3cb7bb4f2d.zip |
zorro: Make sysfs config attribute read-only
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 <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/zorro/zorro-sysfs.c')
-rw-r--r-- | drivers/zorro/zorro-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/zorro/zorro-sysfs.c b/drivers/zorro/zorro-sysfs.c index 9130f1c12c26..808b4f8675c5 100644 --- 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, |