hwrng: mxc-rnga - Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 21 Jul 2013 17:41:38 +0000 (14:41 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 1 Aug 2013 00:53:59 +0000 (10:53 +1000)
commit9e01d0c6f63a59cc756c0028e17effdbadee7227
tree04112025335600ae0c09f647803c55ef094db383
parent69d2884debaa029ddcf9de4631c4c83249bc8c4d
hwrng: mxc-rnga - Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/mxc-rnga.c