commit | cedb7f89d1e1f631b7e5d920fe1ea7f742d07f79 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Fri Dec 20 15:00:48 2013 -0600 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Tue Dec 24 23:52:58 2013 +0530 |
tree | 77d10767ded08d3d950f33b3f500abf2f7e1fd0d | |
parent | 413541dd66d51f791a0b169d9b9014e4f56be13c [diff] |
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. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>