mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
25 lines
815 B
Diff
25 lines
815 B
Diff
From ccd6a7fd0b6afdfa47d3b4f6b850127031effc1f Mon Sep 17 00:00:00 2001
|
|
From: Corentin Labbe <clabbe@baylibre.com>
|
|
Date: Tue, 27 Sep 2022 07:54:40 +0000
|
|
Subject: [PATCH 18/49] crypto: rockchip: do not use uninitialized variable
|
|
|
|
crypto_info->dev is not yet set, so use pdev->dev instead.
|
|
|
|
Reviewed-by: John Keeping <john@metanate.com>
|
|
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
|
|
---
|
|
drivers/crypto/rockchip/rk3288_crypto.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/crypto/rockchip/rk3288_crypto.c
|
|
+++ b/drivers/crypto/rockchip/rk3288_crypto.c
|
|
@@ -381,7 +381,7 @@ static int rk_crypto_probe(struct platfo
|
|
"rk-crypto", pdev);
|
|
|
|
if (err) {
|
|
- dev_err(crypto_info->dev, "irq request failed.\n");
|
|
+ dev_err(&pdev->dev, "irq request failed.\n");
|
|
goto err_crypto;
|
|
}
|
|
|