提交 8a8320c2 编写于 作者: G Guenter Roeck 提交者: Lee Jones

mfd: sm501: dbg_regs attribute must be read-only

Fix:

sm501 sm501: SM501 At b3e00000: Version 050100a0, 8 Mb, IRQ 100
Attribute dbg_regs: write permission without 'store'
------------[ cut here ]------------
WARNING: at drivers/base/core.c:620

dbg_regs does not have a write function and must therefore be marked
as read-only.
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 43e30f23
...@@ -1232,7 +1232,7 @@ static ssize_t sm501_dbg_regs(struct device *dev, ...@@ -1232,7 +1232,7 @@ static ssize_t sm501_dbg_regs(struct device *dev,
} }
static DEVICE_ATTR(dbg_regs, 0666, sm501_dbg_regs, NULL); static DEVICE_ATTR(dbg_regs, 0444, sm501_dbg_regs, NULL);
/* sm501_init_reg /* sm501_init_reg
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册