genirq: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 18 Apr 2022 11:07:16 +0000 (11:07 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 12:08:08 +0000 (14:08 +0200)
commitce4818957fdc5bca57fc2c92b0dfe109d26bcc47
treea870d96ab9f01f56de8f1a8835cf0b040b5e3e6f
parent1adb4d7ad3a585b451f5cf6b0a90c5917af3eac5
genirq: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()

pm_runtime_resume_and_get() achieves the same and simplifies the code.

[ tglx: Simplify it further by presetting retval ]

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220418110716.2559453-1-chi.minghao@zte.com.cn
kernel/irq/chip.c