mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:50:54 +07:00
hwrng: imx-rngc - (trivial) simplify error prints
Remove the device name, it is added by the dev_...() routines. Drop the error code as well. It will be shown by the driver core when the probe operation failed. Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3acd9ea933
commit
f7d79450d1
@ -258,14 +258,14 @@ static int imx_rngc_probe(struct platform_device *pdev)
|
||||
if (self_test) {
|
||||
ret = imx_rngc_self_test(rngc);
|
||||
if (ret) {
|
||||
dev_err(rngc->dev, "FSL RNGC self test failed.\n");
|
||||
dev_err(rngc->dev, "self test failed\n");
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
ret = hwrng_register(&rngc->rng);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "FSL RNGC registering failed (%d)\n", ret);
|
||||
dev_err(&pdev->dev, "hwrng registration failed\n");
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user