i2c: rcar: enable RuntimePM before registering to the core
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 9 Oct 2015 09:39:25 +0000 (10:39 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 13 Nov 2015 18:18:37 +0000 (13:18 -0500)
commit35491413ee62ca02583a688fc30e758c11971c4f
tree4d89d57a6723633dd9d74ae8fe31f97e9a3d079c
parent3a92ba8d3117c99b3a14e898f31fe2bb6c30a9d8
i2c: rcar: enable RuntimePM before registering to the core

[ Upstream commit 4f7effddf4549d57114289f273710f077c4c330a ]

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>
Cc: stable@kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/i2c/busses/i2c-rcar.c