浏览代码

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>
Geert Uytterhoeven 17 年之前
父节点
当前提交
a01086687c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/zorro/zorro-sysfs.c

+ 1 - 1
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 = {
 static struct bin_attribute zorro_config_attr = {
 	.attr =	{
 	.attr =	{
 		.name = "config",
 		.name = "config",
-		.mode = S_IRUGO | S_IWUSR,
+		.mode = S_IRUGO,
 	},
 	},
 	.size = sizeof(struct ConfigDev),
 	.size = sizeof(struct ConfigDev),
 	.read = zorro_read_config,
 	.read = zorro_read_config,