mfd: sm501: dbg_regs attribute must be read-only
authorGuenter Roeck <linux@roeck-us.net>
Sun, 8 Sep 2013 07:25:36 +0000 (00:25 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:43 +0000 (13:09 +0000)
commitb38854d37620688ea330bf38763475586c13a21e
tree9d599916352ba3b5482b758b0e31bd1b5b35ab2b
parent5cff1e3f8966caad3229a28c355bf82256b3703d
mfd: sm501: dbg_regs attribute must be read-only

commit 8a8320c2e78d1b619a8fa8eb5ae946b8691de604 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/sm501.c