hwrng: stm32 - Fix build with CONFIG_PM
authorDaniel Thompson <daniel.thompson@linaro.org>
Wed, 14 Oct 2015 16:04:55 +0000 (17:04 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Oct 2015 01:50:39 +0000 (09:50 +0800)
commitd6ba06b8b9a947a8385769f458611d3c97410226
tree6bf434196db3e0a5b1cd77a4e24e815289e86745
parent62f57d05e287e950c6e1246b1dba08e12985195a
hwrng: stm32 - Fix build with CONFIG_PM

Commit c6a97c42e399 ("hwrng: stm32 - add support for STM32 HW RNG")
was inadequately tested (actually it was tested quite hard so
incompetent would be a better description that inadequate) and does
not compile on platforms with CONFIG_PM set.

Fix this.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/stm32-rng.c