Skip to content

Commit

Permalink
hwrng: n2-drv - fix typo
Browse files Browse the repository at this point in the history
Fixes: 3e75241 ("hwrng: drivers - Use device-managed registration API")
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
sfrothwell authored and herbertx committed Aug 8, 2019
1 parent 155e4db commit b7a2758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/n2-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b7a2758

Please sign in to comment.