Commit 61a6d854 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Krzysztof Kozlowski

memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable}_rpm

rpcif_enable_rpm calls pm_runtime_enable, so rpcif_disable_rpm needs to
call pm_runtime_disable and not pm_runtime_put_sync.

Fixes: ca7d8b98 ("memory: add Renesas RPC-IF driver")
Reported-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarSergei Shtylyov <sergei.shtylyov@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201126191146.8753-3-prabhakar.mahadev-lad.rj@bp.renesas.comSigned-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent a0453f4e
...@@ -212,7 +212,7 @@ EXPORT_SYMBOL(rpcif_enable_rpm); ...@@ -212,7 +212,7 @@ EXPORT_SYMBOL(rpcif_enable_rpm);
void rpcif_disable_rpm(struct rpcif *rpc) void rpcif_disable_rpm(struct rpcif *rpc)
{ {
pm_runtime_put_sync(rpc->dev); pm_runtime_disable(rpc->dev);
} }
EXPORT_SYMBOL(rpcif_disable_rpm); EXPORT_SYMBOL(rpcif_disable_rpm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment