Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f5eee3a8 authored by Felipe Balbi's avatar Felipe Balbi Committed by Yaniv Gardi
Browse files

phy: core: properly handle failure of pm_runtime_get functions



In case pm_runtime_get*() fails, it still
increments pm usage counter, so we *must*
make sure to pm_runtime_put() even in those
cases.

This patch fixes that mistake the same way
usbcore treats those possible failures.

Change-Id: Id3f8b7bfb6bc10fcd2acd4458dba8dd669aa9a4a
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Git-commit: cedb7f89d1e1f631b7e5d920fe1ea7f742d07f79
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 0aa4939c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment