From: Lokesh Vutla Date: Mon, 5 Aug 2013 14:47:20 +0000 (+0530) Subject: hwrng: omap - Remove duplicated function call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7256c476f79d2b50a32cecb0330362afd2fa0b50;p=linux-beck.git hwrng: omap - Remove duplicated function call platform_set_drvdata() is called twice in driver probe. Removing the duplicated call. Signed-off-by: Lokesh Vutla Signed-off-by: Herbert Xu --- 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);