Skip to content
Commit f9ee20c8 authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Marc Zyngier
Browse files

irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()



gic_probe() calls pm_runtime_get_sync() and added fail path as
rpm_put to put usage_counter. However, pm_runtime_get_sync()
will increment usage_counter even it failed. Fix it by replacing it with
pm_runtime_resume_and_get() to keep usage counter balanced.

Fixes: 9c8edddf ("irqchip/gic: Add platform driver for non-root GICs that require RPM")
Signed-off-by: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124065150.22809-1-shangxiaojing@huawei.com
parent 915649da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment