mfd: arizona: Correct calling of runtime_put_sync
authorSapthagiri Baratam <sapthagiri.baratam@cirrus.com>
Tue, 21 Aug 2018 14:22:44 +0000 (19:52 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commit6b269a41a4520f7eb639e61a45ebbb9c9267d5e0
treeb749cbfeb04b74367a25cfe4a35a32e5c85758f5
parent3d51ec93a564a0f87d1276f067732be904816a53
mfd: arizona: Correct calling of runtime_put_sync

Don't call runtime_put_sync when clk32k_ref is ARIZONA_32KZ_MCLK2
as there is no corresponding runtime_get_sync call.

MCLK1 is not in the AoD power domain so if it is used as 32kHz clock
source we need to hold a runtime PM reference to keep the device from
going into low power mode.

Fixes: cdd8da8cc66b ("mfd: arizona: Add gating of external MCLKn clocks")
Signed-off-by: Sapthagiri Baratam <sapthagiri.baratam@cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c