commit | 1a37a039711610dd53ec03d8cab9e81875338225 | [log] [tgz] |
---|---|---|
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | Mon May 25 19:05:40 2020 +0800 |
committer | Sebastian Reichel <sre@kernel.org> | Fri Jun 19 19:01:16 2020 +0200 |
tree | 6cd7721d538cc96f2ecb3cd280da9e7a6a34ca60 | |
parent | 7222bd603dd2fe607794acd0c53025da1dbde21f [diff] |
power: supply: bq24190_charger: Fix runtime PM imbalance on error pm_runtime_get_sync() increments the runtime PM usage counter even it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>