hwrng: omap - Remove duplicated function call
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 5 Aug 2013 14:47:20 +0000 (20:17 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2013 06:39:47 +0000 (16:39 +1000)
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>
drivers/char/hw_random/omap-rng.c

index 9c19396..5a2ab3b 100644 (file)
@@ -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);