spi: spi-stm32-qspi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 12 Apr 2022 07:09:06 +0000 (07:09 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 12 Apr 2022 16:17:19 +0000 (17:17 +0100)
commitc6cf1fafb65dda10f3babcec76991cbc304d02b9
tree7f56ed462a4c1826d3e5c47f9fd2e0ca620a5bd8
parent8b1ea69a63eb62f97cef63e6d816b64ed84e8760
spi: spi-stm32-qspi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20220412070906.2532091-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c