i2c: rcar: enable RuntimePM before registering to the core

commit 4f7effddf4 upstream.

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.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Wolfram Sang 2015-10-09 10:39:25 +01:00 • committed by Luis Henriques
commit 33be69da00