diff options
author | Alexander Clouter <alex@digriz.org.uk> | 2013-03-31 12:34:50 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 09:01:45 -0400 |
commit | 1907da78bf6a3f74e5d030a4a4f6700ba0d0a234 (patch) | |
tree | da0b0fc6f6f3327777976389d88843b1032e1d68 /include/linux/timeriomem-rng.h | |
parent | 57ae1b0532977b30184aaba04b6cafe0a284c21f (diff) |
hwrng: timeriomem - update to support more than one device
timeriomem_rng only supports a single device instance. This patch
enables multiple timeriomem_rng devices to coexist as well as adds
some additional error checking.
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/timeriomem-rng.h')
-rw-r--r-- | include/linux/timeriomem-rng.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/timeriomem-rng.h b/include/linux/timeriomem-rng.h index 3e08a1c86830..46eb27ddbfab 100644 --- a/include/linux/timeriomem-rng.h +++ b/include/linux/timeriomem-rng.h | |||
@@ -8,12 +8,7 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/completion.h> | ||
12 | |||
13 | struct timeriomem_rng_data { | 11 | struct timeriomem_rng_data { |
14 | struct completion completion; | ||
15 | unsigned int present:1; | ||
16 | |||
17 | void __iomem *address; | 12 | void __iomem *address; |
18 | 13 | ||
19 | /* measures in usecs */ | 14 | /* measures in usecs */ |