summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2023-11-12 19:52:41 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-11-17 14:16:29 +0300
commit7c18e3c6b309aebc0fde38bda5ff30ea22c8a56c (patch)
treea49a1daa5c598827ed71f8eafe36507d7a3be10e /include/linux
parentd57343022b71b9f41e731282dbe0baf0cff6ada8 (diff)
downloadlinux-7c18e3c6b309aebc0fde38bda5ff30ea22c8a56c.tar.xz
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 'include/linux')
0 files changed, 0 insertions, 0 deletions