Commit a01086687c5f795a9c2b85d757e3af3cb7bb4f2d

Authored by Geert Uytterhoeven
Committed by Linus Torvalds
1 parent 90638f9975

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/zorro/zorro-sysfs.c
... ... @@ -78,7 +78,7 @@
78 78 static struct bin_attribute zorro_config_attr = {
79 79 .attr = {
80 80 .name = "config",
81   - .mode = S_IRUGO | S_IWUSR,
  81 + .mode = S_IRUGO,
82 82 },
83 83 .size = sizeof(struct ConfigDev),
84 84 .read = zorro_read_config,