summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-tdes.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-12-13 10:54:54 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-20 07:58:35 +0100
commite9ce6aee1d4d0ae61bf9e1666d790394c4f4d1a8 (patch)
treeb3f613858e4027334f5bca5a5d7fac018bc28c6a /drivers/crypto/atmel-tdes.c
parentcrypto: atmel-{aes,sha,tdes} - Stop passing unused argument in _dma_init() (diff)
downloadlinux-e9ce6aee1d4d0ae61bf9e1666d790394c4f4d1a8.tar.xz
linux-e9ce6aee1d4d0ae61bf9e1666d790394c4f4d1a8.zip
crypto: atmel-{sha,tdes} - Print warn message even when deferring
Even when deferring, we would like to know what caused it. Update dev_warn to dev_err because if the DMA init fails, the probe is stopped. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/atmel-tdes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c
index d42b22775ee9..83a6d42c8921 100644
--- a/drivers/crypto/atmel-tdes.c
+++ b/drivers/crypto/atmel-tdes.c
@@ -783,8 +783,7 @@ static int atmel_tdes_dma_init(struct atmel_tdes_dev *dd)
err_dma_out:
dma_release_channel(dd->dma_lch_in.chan);
err_dma_in:
- if (ret != -EPROBE_DEFER)
- dev_warn(dd->dev, "no DMA channel available\n");
+ dev_err(dd->dev, "no DMA channel available\n");
return ret;
}