pwm: rcar: Use PM Runtime to control module clock
authorHien Dang <hien.dang.eb@renesas.com>
Tue, 13 Mar 2018 08:18:17 +0000 (17:18 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 27 Mar 2018 23:26:15 +0000 (01:26 +0200)
commitf2e6142cdc10b1b7edea8d65b07293f152e4d110
tree19a3b4396e782441b97b9c9534669e29f306b90d
parentaa7c49328bd84cda3c4674b70eb10db0a94f89ab
pwm: rcar: Use PM Runtime to control module clock

Runtime PM API (pm_runtime_get_sync/pm_runtime_put) should be used
to control module clock instead of clk_prepare_enable and
clk_disable_unprepare.

Signed-off-by: Hien Dang <hien.dang.eb@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rcar.c