aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hw_random.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-12-23 00:40:17 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-25 16:33:34 -0500
commit77584ee57434813b50fc85cde995a6271a5081b7 (patch)
tree864924c83b987f586da1ee50ab4e49eac6bcafc0 /include/linux/hw_random.h
parentd69e75deff2377b46b2b357ac3781cc93cd7ffd6 (diff)
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/linux/hw_random.h')
-rw-r--r--include/linux/hw_random.h3
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 @@
12#ifndef LINUX_HWRANDOM_H_ 12#ifndef LINUX_HWRANDOM_H_
13#define LINUX_HWRANDOM_H_ 13#define LINUX_HWRANDOM_H_
14 14
15#include <linux/completion.h>
15#include <linux/types.h> 16#include <linux/types.h>
16#include <linux/list.h> 17#include <linux/list.h>
17#include <linux/kref.h> 18#include <linux/kref.h>
@@ -46,7 +47,7 @@ struct hwrng {
46 /* internal. */ 47 /* internal. */
47 struct list_head list; 48 struct list_head list;
48 struct kref ref; 49 struct kref ref;
49 bool cleanup_done; 50 struct completion cleanup_done;
50}; 51};
51 52
52/** Register a new Hardware Random Number Generator driver. */ 53/** Register a new Hardware Random Number Generator driver. */