OSDN Git Service

crypto: rockchip - use dev_err for error message about interrupt
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 27 Sep 2022 07:54:39 +0000 (07:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:32 +0000 (12:36 +0800)
Interrupt is mandatory so the message should be printed as error.

Reviewed-by: John Keeping <john@metanate.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/rockchip/rk3288_crypto.c

index 35d7306..45cc5f7 100644 (file)
@@ -371,8 +371,7 @@ static int rk_crypto_probe(struct platform_device *pdev)
 
        crypto_info->irq = platform_get_irq(pdev, 0);
        if (crypto_info->irq < 0) {
-               dev_warn(crypto_info->dev,
-                        "control Interrupt is not available.\n");
+               dev_err(&pdev->dev, "control Interrupt is not available.\n");
                err = crypto_info->irq;
                goto err_crypto;
        }