[0/4] hwrng: cctrng - simplify the code a bit

Message ID 20230719071806.335718-1-martin@kaiser.cx
Headers
Series hwrng: cctrng - simplify the code a bit |

Message

Martin Kaiser July 19, 2023, 7:18 a.m. UTC
  We can use module_platform_driver and devm_clk_get_optional_enabled in the
cctrng driver to make its code simpler.

The patches were compile tested only.

Martin Kaiser (4):
  hwrng: cctrng - don't open code init and exit functions
  hwrng: cctrng - let devres enable the clock
  hwrng: cctrng - merge cc_trng_clk_init into its only caller
  hwrng: cctrng - use dev_err_probe in error paths

 drivers/char/hw_random/cctrng.c | 93 +++++++--------------------------
 1 file changed, 19 insertions(+), 74 deletions(-)
  

Comments

Herbert Xu July 28, 2023, 10:22 a.m. UTC | #1
On Wed, Jul 19, 2023 at 09:18:02AM +0200, Martin Kaiser wrote:
> We can use module_platform_driver and devm_clk_get_optional_enabled in the
> cctrng driver to make its code simpler.
> 
> The patches were compile tested only.
> 
> Martin Kaiser (4):
>   hwrng: cctrng - don't open code init and exit functions
>   hwrng: cctrng - let devres enable the clock
>   hwrng: cctrng - merge cc_trng_clk_init into its only caller
>   hwrng: cctrng - use dev_err_probe in error paths
> 
>  drivers/char/hw_random/cctrng.c | 93 +++++++--------------------------
>  1 file changed, 19 insertions(+), 74 deletions(-)

All applied.  Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt