summaryrefslogtreecommitdiff
path: root/drivers/mfd/sm501.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-09-08 00:25:36 -0700
committerLee Jones <lee.jones@linaro.org>2013-10-23 16:20:34 +0100
commit8a8320c2e78d1b619a8fa8eb5ae946b8691de604 (patch)
treeb9e56c4163265bea565702255a96fdc14b002d58 /drivers/mfd/sm501.c
parent43e30f23b589642a7eaff005bc30444a5247976c (diff)
downloadlwn-8a8320c2e78d1b619a8fa8eb5ae946b8691de604.tar.gz
lwn-8a8320c2e78d1b619a8fa8eb5ae946b8691de604.zip
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>
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r--drivers/mfd/sm501.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 33f040c558d0..3799a3d64415 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -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
*