summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2019-08-05 07:49:59 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-08 05:07:49 +0300
commitb7a2758f20251e1d7f884d96e46ea165810431c3 (patch)
tree10c16b1876fc540c28144dbb82430e1659dc2563 /drivers
parent155e4db324874d22aa8d3892da2a37fb39c89578 (diff)
downloadlinux-b7a2758f20251e1d7f884d96e46ea165810431c3.tar.xz
hwrng: n2-drv - fix typo
Fixes: 3e75241be808 ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/hw_random/n2-drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index 2d256b3470db..73e408146420 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -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;