OSDN Git Service

i2c: s3c2410: fix oops in suspend callback for non-dt platforms
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 3 May 2015 18:13:10 +0000 (21:13 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 May 2015 16:13:46 +0000 (18:13 +0200)
commit8d487a43c36b54a029d74ad3b0a6a9d1253e728a
tree34800d03a117a80f25705aa69d6fb9e41076ce4a
parent3e59ae4aa28237ced95413fbd46004b57c4da095
i2c: s3c2410: fix oops in suspend callback for non-dt platforms

Initialize sysreg by default, otherwise driver will crash in suspend
callback when not using DT.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Fixes: a7750c3ef01223 ("i2c: s3c2410: Handle i2c sys_cfg register in i2c driver")
drivers/i2c/busses/i2c-s3c2410.c