Skip to content

Commit

Permalink
memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{en…
Browse files Browse the repository at this point in the history
…able,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: ca7d8b9 ("memory: add Renesas RPC-IF driver")
Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Sergei Shtylyov <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
  • Loading branch information
prabhakarlad authored and krzk committed Nov 28, 2020
1 parent a0453f4 commit 61a6d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/memory/renesas-rpc-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ EXPORT_SYMBOL(rpcif_enable_rpm);

void rpcif_disable_rpm(struct rpcif *rpc)
{
pm_runtime_put_sync(rpc->dev);
pm_runtime_disable(rpc->dev);
}
EXPORT_SYMBOL(rpcif_disable_rpm);

Expand Down

0 comments on commit 61a6d85

Please sign in to comment.