spi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 18 Apr 2022 11:02:26 +0000 (11:02 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 12:13:50 +0000 (13:13 +0100)
commitdd769f15483cac1895fd219eb17e6f04c9a5548f
tree3f2f980b94434e2042d6b3608125b80e79c0d39e
parent79422ed9bd7fbd79f84d8a5abb0094c16221f55b
spi: 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>
Link: https://lore.kernel.org/r/20220418110226.2559081-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c