summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLokesh Vutla2013-08-05 16:47:20 +0200
committerHerbert Xu2013-08-09 08:39:47 +0200
commit7256c476f79d2b50a32cecb0330362afd2fa0b50 (patch)
tree3489e42911a69bb4376ebd12c297fb41611dbd35 /drivers/char
parenthwrng: omap - Convert to devm_kzalloc() (diff)
downloadkernel-qcow2-linux-7256c476f79d2b50a32cecb0330362afd2fa0b50.tar.gz
kernel-qcow2-linux-7256c476f79d2b50a32cecb0330362afd2fa0b50.tar.xz
kernel-qcow2-linux-7256c476f79d2b50a32cecb0330362afd2fa0b50.zip
hwrng: omap - Remove duplicated function call
platform_set_drvdata() is called twice in driver probe. Removing the duplicated call. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/omap-rng.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index 9c19396b940f..5a2ab3b3cd78 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -125,7 +125,6 @@ static int omap_rng_probe(struct platform_device *pdev)
ret = PTR_ERR(priv->base);
goto err_ioremap;
}
- platform_set_drvdata(pdev, priv);
pm_runtime_enable(&pdev->dev);
pm_runtime_get_sync(&pdev->dev);