mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
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: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
43e30f23b5
commit
8a8320c2e7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue