Skip to content
Commit e5b91349 authored by Dinghao Liu's avatar Dinghao Liu Committed by Felipe Balbi
Browse files

usb: cdns3: Fix runtime PM imbalance on error



pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent eafa8004
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment