From: Stephen Rothwell Date: Mon, 5 Aug 2019 04:49:59 +0000 (+1000) Subject: hwrng: n2-drv - fix typo X-Git-Tag: v5.4-rc8~4^2~226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7a2758f20251e1d7f884d96e46ea165810431c3;p=platform%2Fkernel%2Flinux-rpi.git hwrng: n2-drv - fix typo Fixes: 3e75241be808 ("hwrng: drivers - Use device-managed registration API") Signed-off-by: Stephen Rothwell Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c index 2d256b3..73e4081 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;