crypto: sun8i-ce - using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 20 Apr 2022 03:02:18 +0000 (03:02 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Apr 2022 05:44:57 +0000 (13:44 +0800)
commitd3bae86698720f6fc2ca07d3850ec3167a11ec2b
treec13f3422647f20d6b9569aa0c5eed575187858c0
parentee74fdf0ca74e6a65716400b403285686133a9f8
crypto: sun8i-ce - using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c