crypto: atmel - Use dev_err_probe instead of dev_err
authorWang Ming <machel@vivo.com>
Wed, 26 Jul 2023 12:04:41 +0000 (20:04 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Aug 2023 09:09:25 +0000 (17:09 +0800)
commit355bf65080399b0c1aba34368331802ce1998aef
tree67c84c8e3dae6083a2a0fdaa24e46aec49d9730c
parent322d74752c28a71fbca3650b98c21c58d25414a8
crypto: atmel - Use dev_err_probe instead of dev_err

It is possible that dma_request_chan will return EPROBE_DEFER,
which means that dd->dev is not ready yet. In this case,
dev_err(dd->dev), there will be no output. This patch fixes the bug.

Signed-off-by: Wang Ming <machel@vivo.com>
Reviewed-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c