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:Felipe Balbi <balbi@ti.com> Signed-off-by:
Kishon 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:
Yaniv Gardi <ygardi@codeaurora.org>
Loading
Please register or sign in to comment