]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jun 2015 00:03:27 +0000 (17:03 -0700)
commitdb4b678bd369dd3e14e0c25412d9f6a3c9cddc03
tree90fa8963077991892b5d860f38f4dd95c76db4ac
parentc5133e0d6a2dbff70d322549ed354a1b0c462464
i2c: s3c2410: fix oops in suspend callback for non-dt platforms

commit 8d487a43c36b54a029d74ad3b0a6a9d1253e728a upstream.

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>
Fixes: a7750c3ef01223 ("i2c: s3c2410: Handle i2c sys_cfg register in i2c driver")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-s3c2410.c