hwrng: add devm_* interfaces
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Mar 2015 21:00:02 +0000 (14:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 16 Mar 2015 10:45:54 +0000 (21:45 +1100)
commit4d9b519c9bcab5718053f8717dadad7b09b41f5e
treedec88fa5ec5272ebfd5886e0edabb612fa0a2154
parent05713ba9055f1a209d50e480626f36c401bda3ad
hwrng: add devm_* interfaces

This change adds devm_hwrng_register and devm_hwrng_unregister which
use can simplify error unwinding and unbinding code paths in device
drivers.

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