[PATCH] hwrng: imx-rngc - use dev_err_probe
Herbert Xu
herbert at gondor.apana.org.au
Fri Jul 14 01:58:07 PDT 2023
On Tue, Jul 04, 2023 at 07:06:44PM +0200, Martin Kaiser wrote:
> Simplify the code by calling dev_err_probe instead of dev_err and return.
>
> While at it, use the same device for all error messages.
>
> Signed-off-by: Martin Kaiser <martin at kaiser.cx>
> ---
> drivers/char/hw_random/imx-rngc.c | 24 ++++++++----------------
> 1 file changed, 8 insertions(+), 16 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list