hwrng: ks-sa - Use pm_runtime_resume_and_get() to replace open coding
authorTian Tao <tiantao6@hisilicon.com>
Mon, 24 May 2021 12:28:38 +0000 (20:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Jun 2021 12:24:04 +0000 (20:24 +0800)
commite9009fb227fa66a66cef02a36fb51c288f411e0d
tree2b7ef2a485a0a38470057173a27e4ef3e10e41a9
parentb21d14d9885ace8587a5b5b36cdcda9d8814f313
hwrng: ks-sa - Use pm_runtime_resume_and_get() to replace open coding

use 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.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/ks-sa-rng.c