hwrng: amd - Replace global variable with private struct
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Fri, 26 Aug 2016 11:11:34 +0000 (13:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 31 Aug 2016 15:00:45 +0000 (23:00 +0800)
commit7bad2cc062b343575f19d5de6be3f297a1429f37
tree5d9638177f30b1f2e60f4b636c5d1e5dec98a5a7
parentfdec60d683568c8e79457c106fa6642ca7ae95f3
hwrng: amd - Replace global variable with private struct

Instead of having two global variable, it's better to use a
private struct. This will permit to remove amd_pdev variable

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/amd-rng.c