hwrng: exynos - switch to DEFINE_SIMPLE_DEV_PM_OPS
authorMartin Kaiser <martin@kaiser.cx>
Tue, 4 Jul 2023 17:10:51 +0000 (19:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jul 2023 10:16:24 +0000 (22:16 +1200)
commitb4198a9a538c330cdff7239f8aba0792d31fab42
treebe092557e23b897a2148214b09f952fe921cf228
parentea6084559285f4436434630a0e0d9e82709a04f2
hwrng: exynos - switch to DEFINE_SIMPLE_DEV_PM_OPS

SIMPLE_DEV_PM_OPS is deprecated, replace it with DEFINE_SIMPLE_DEV_PM_OPS
and use pm_sleep_ptr for setting the driver's pm routines. We can now
remove the __maybe_unused qualifier in the suspend and resume functions.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/exynos-trng.c