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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
299c481fa5
commit
8ccd9c8cd1
@ -381,7 +381,7 @@ static int rk_crypto_probe(struct platform_device *pdev)
|
||||
"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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user