hwrng: n2-drv - fix typo
Fixes: 3e75241be8
("hwrng: drivers - Use device-managed registration API")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
155e4db324
commit
b7a2758f20
|
@ -768,7 +768,7 @@ static int n2rng_probe(struct platform_device *op)
|
|||
np->hwrng.data_read = n2rng_data_read;
|
||||
np->hwrng.priv = (unsigned long) np;
|
||||
|
||||
err = devm_hwrng_register(&pdev->dev, &np->hwrng);
|
||||
err = devm_hwrng_register(&op->dev, &np->hwrng);
|
||||
if (err)
|
||||
goto out_hvapi_unregister;
|
||||
|
||||
|
|
Loading…
Reference in New Issue