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:
Stephen Rothwell 2019-08-05 14:49:59 +10:00 committed by Herbert Xu
parent 155e4db324
commit b7a2758f20
1 changed files with 1 additions and 1 deletions

View File

@ -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;