hwrng: iproc-rng200 - do not use static structure
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Mar 2015 21:00:06 +0000 (14:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 16 Mar 2015 10:45:56 +0000 (21:45 +1100)
commitef0a1b26499f61b2453dd0c454aedee687edf31c
treed7d8ce39756b69f3b893ef1454ab3e2a03683b7b
parent9052b0dd45d7e44aa43af03f48d329a2530c70c4
hwrng: iproc-rng200 - do not use static structure

Instead of using static hwrng structure that is reused between
binds/unbinds of the device let's embed it into driver's private
structure that we allocate. This way we are guaranteed not to stumble
onto something left from previous bind attempt.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/iproc-rng200.c