hwrng: imx-rngc - switch to DEFINE_SIMPLE_DEV_PM_OPS
authorMartin Kaiser <martin@kaiser.cx>
Fri, 16 Jun 2023 15:59:21 +0000 (16:59 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jun 2023 08:15:37 +0000 (16:15 +0800)
commitb335f258e8ddafec0e8ae2201ca78d29ed8f85eb
treee084622076f4083e21d2c64e4e0de73c5e266918
parent501e197a02d4aef157f53ba3a0b9049c3e52fedc
hwrng: imx-rngc - 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/imx-rngc.c