diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2013-12-20 10:36:49 +0530 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2013-12-24 23:52:58 +0530 |
commit | 637d378cea0b463c466a61a6564cdd541d689af5 (patch) | |
tree | 51cb3c6ca847c33d0305547ba2b1f21d47759ff8 /include/linux/dynamic_debug.h | |
parent | cedb7f89d1e1f631b7e5d920fe1ea7f742d07f79 (diff) |
phy: phy-core: increment refcounting variables only on 'success'
Increment 'init_count' only if the 'init' callback succeeded and decrement
'init_count' only if the 'exit' callback succeded. Increment 'power_count'
only if 'power_on' callback succeded and if it failed disable the clocks using
phy_pm_runtime_put_sync(). Also decrement 'power_count' only if 'power_off'
callback succeded and if it failed do not disable the clocks.
Reported-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'include/linux/dynamic_debug.h')
0 files changed, 0 insertions, 0 deletions