diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-11-12 17:52:41 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-11-17 19:16:29 +0800 |
commit | 7c18e3c6b309aebc0fde38bda5ff30ea22c8a56c (patch) | |
tree | a49a1daa5c598827ed71f8eafe36507d7a3be10e /mm | |
parent | d57343022b71b9f41e731282dbe0baf0cff6ada8 (diff) |
hwrng: virtio - remove #ifdef guards for PM functions
Use pm_sleep_ptr for the freeze and restore functions instead of putting
them under #ifdef CONFIG_PM_SLEEP. The resulting code is slightly simpler.
pm_sleep_ptr lets the compiler see the functions but also allows removing
them as unused code if !CONFIG_PM_SLEEP.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions