diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-23 16:40:17 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-26 08:33:34 +1100 |
commit | 77584ee57434813b50fc85cde995a6271a5081b7 (patch) | |
tree | 864924c83b987f586da1ee50ab4e49eac6bcafc0 /include | |
parent | d69e75deff2377b46b2b357ac3781cc93cd7ffd6 (diff) | |
download | linux-stable-77584ee57434813b50fc85cde995a6271a5081b7.tar.gz linux-stable-77584ee57434813b50fc85cde995a6271a5081b7.tar.bz2 linux-stable-77584ee57434813b50fc85cde995a6271a5081b7.zip |
hwrng: core - Use struct completion for cleanup_done
There is no point in doing a manual completion for cleanup_done
when struct completion fits in perfectly.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hw_random.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index 7832e5008959..eb7b414d232b 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h @@ -12,6 +12,7 @@ #ifndef LINUX_HWRANDOM_H_ #define LINUX_HWRANDOM_H_ +#include <linux/completion.h> #include <linux/types.h> #include <linux/list.h> #include <linux/kref.h> @@ -46,7 +47,7 @@ struct hwrng { /* internal. */ struct list_head list; struct kref ref; - bool cleanup_done; + struct completion cleanup_done; }; /** Register a new Hardware Random Number Generator driver. */ |