From: Guenter Roeck Date: Sun, 8 Sep 2013 07:25:36 +0000 (-0700) Subject: mfd: sm501: dbg_regs attribute must be read-only X-Git-Tag: next-20130912~31^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=257f45e91bcd64e17cf344a53b095239c42b8035;p=karo-tx-linux.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 9816c232e583..c04e08d1d0fa 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 *