Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
a0108668 90638f99

+1 -1
+1 -1
drivers/zorro/zorro-sysfs.c
··· 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,