i2c: s3c2410: enable RuntimePM before registering to the core
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 10 Oct 2015 07:24:23 +0000 (08:24 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Oct 2015 12:26:07 +0000 (14:26 +0200)
commiteadd709f5d2e8aebb1b7bf49460e97a68d81a9b0
treeda60579629b0bb02a31cb688d93070d0d1c7e9ab
parent4f7effddf4549d57114289f273710f077c4c330a
i2c: s3c2410: enable RuntimePM before registering to the core

The core may register clients attached to this master which may use
funtionality from the master. So, RuntimePM must be enabled before, otherwise
this will fail. While here, move drvdata, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-s3c2410.c